-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcompile_proj
executable file
·153 lines (136 loc) · 3.47 KB
/
compile_proj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
#!/bin/bash
currdir=$(pwd)
function create_programs_directory() {
cd $currdir
mkdir -p programs
cd programs
}
function compile_collections() {
create_programs_directory
wget https://archive.apache.org/dist/commons/collections/source/commons-collections-3.2.1-src.tar.gz
tar xfvz commons-collections-3.2.1-src.tar.gz
mv commons-collections-3.2.1-src collections
cd collections
ant
}
function compile_jodatime() {
create_programs_directory
svn export https://joda-time.svn.sourceforge.net/svnroot/joda-time/tags/v1_6_200 jodatime
cd jodatime
sed -i s/,installjunit// build.xml
ant compile
}
function compile_lucene() {
create_programs_directory
wget http://archive.apache.org/dist/lucene/java/lucene-2.9.3-src.zip
unzip lucene-2.9.3-src.zip
mv lucene-2.9.3 lucene
cd lucene
ant
}
function compile_jfreechart() {
create_programs_directory
wget -O jfreechart-1.0.13.zip "http://sourceforge.net/projects/jfreechart/files/1.%20JFreeChart/1.0.13/jfreechart-1.0.13.zip/download?_test=goal"
unzip jfreechart-1.0.13.zip
mv jfreechart-1.0.13 jfreechart
cd jfreechart
cd ant
sed -i 's/<delete dir="${basedir}\/build" \/>//' build.xml
ant compile
}
#version 0.8
function compile_betwixt() {
create_programs_directory
svn export http://svn.apache.org/repos/asf/commons/proper/betwixt/trunk/ betwixt
cd betwixt
ant
}
function compile_swt() {
create_programs_directory
wget -O swt-3.8M2-gtk-linux-x86.zip "http://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/drops/R-3.7.1-201109091335/swt-3.7.1-gtk-linux-x86.zip&url=http://mirror.cc.columbia.edu/pub/software/eclipse/eclipse/downloads/drops/R-3.7.1-201109091335/swt-3.7.1-gtk-linux-x86.zip&mirror_id=454"
unzip swt-3.8M2-gtk-linux-x86.zip -d swt
cd swt
unzip swt.jar -d bin
unzip src.zip -d src
}
function compile_cobertura() {
create_programs_directory
svn export https://cobertura.svn.sourceforge.net/svnroot/cobertura/trunk/cobertura
cd cobertura
ant compile
}
function compile_guice() {
create_programs_directory
svn checkout http://google-guice.googlecode.com/svn/trunk/ guice
cd guice
ant
}
function compile_itext() {
create_programs_directory
svn co https://itext.svn.sourceforge.net/svnroot/itext/trunk itext
cd itext
ant
}
function compile_log4j() {
create_programs_directory
svn export https://svn.apache.org/repos/asf/logging/log4j/trunk log4j
cd log4j
ant build
}
function compile_glazedlists() {
create_programs_directory
svn export https://svn.java.net/svn/glazedlists~svn/trunk/ glazed
cd glazed
ant
}
function compile_xalan() {
create_programs_directory
svn co http://svn.apache.org/repos/asf/xalan/java/trunk xalan
cd xalan
ant compile
}
function compile_money() {
create_programs_directory
git clone https://github.com/JodaOrg/joda-money.git
mv joda-money jodamoney
cd jodamoney
mvn compile
}
function compile_maths(){
create_programs_directory
svn export http://svn.apache.org/repos/asf/commons/proper/math/trunk math
cd math
ant
}
function compile_all() {
case ${1} in
collections)
compile_collections
;;
jodatime)
compile_jodatime
;;
lucene)
compile_lucene
;;
jfreechart)
compile_jfreechart
;;
log4j)
compile_log4j
;;
glazed)
compile_glazedlists
;;
jodamoney)
compile_money
;;
betwixt)
compile_betwixt
;;
xalan)
compile_xalan
;;
esac
}
compile_all $*