Przeglądaj źródła

Remove references to git from build scripts and the like.

Would appreviate a full review of this to make sure I didn't miss anything or delete the wrong stuff!

Change-Id: Iff32442f0fe317955f5122ced3d6cf95c4436982
Reviewed-on: http://gerrit.dmdirc.com/238
Reviewed-by: Gregory Holmes <greboid@dmdirc.com>
Tested-by: Gregory Holmes <greboid@dmdirc.com>
Reviewed-by: Chris Smith <chris@dmdirc.com>
tags/0.6.3b1
Shane Mc Cormack 14 lat temu
rodzic
commit
b5fc95bf5c

+ 8
- 22
BuildAll.sh Wyświetl plik

@@ -18,9 +18,6 @@ SCRIPTDIR="/home/dmdirc/scripts"
18 18
 # Path to ant binary
19 19
 ANT="/usr/bin/ant"
20 20
 
21
-# Path to svn binary
22
-SVN="/usr/bin/svn"
23
-
24 21
 # Path to git binary
25 22
 GIT="/usr/bin/git"
26 23
 
@@ -33,13 +30,12 @@ if [ -d .git ]; then
33 30
 	$GIT reset --hard
34 31
 	$GIT checkout master
35 32
 	$GIT pull
36
-	SVNREV=`$GIT describe`
33
+	GITREV=`$GIT describe`
37 34
 else
38
-	$SVN update
39
-	SVNREV=`$SVN info | grep Revision`
40
-	SVNREV=${SVNREV##*: }
35
+	echo "GIT Directory not found."
36
+	exit 1;
41 37
 fi;
42
-export DMDIRC_SVN=${SVNREV}
38
+export DMDIRC_GIT=${GITREV}
43 39
 
44 40
 # Archive old nightlies
45 41
 if [ `date +%d` = "01" ]; then
@@ -51,8 +47,8 @@ if [ `date +%d` = "01" ]; then
51 47
 	rm -Rf ${WWWDIR}/nightly/*_latest*
52 48
 fi
53 49
 
54
-# The date/svn prefix to add to the end of the file names of stuff
55
-FILEDATA=`date +%Y%m%d`_${SVNREV}
50
+# The date/git rev to add to the end of the file names of stuff
51
+FILEDATA=`date +%Y%m%d`_${GITREV}
56 52
 
57 53
 # Copy default settings from www to trunk for compile (if they exist)
58 54
 REVERTLIST=""
@@ -70,13 +66,7 @@ fi;
70 66
 $ANT -Dchannel=NIGHTLY -k clean jar
71 67
 
72 68
 # Now revert the trunk so as not to break updates.
73
-if [ -d .git ]; then
74
-	${GIT} checkout src/com/dmdirc/config/defaults/;
75
-else
76
-	for updatedir in ${REVERTLIST}; do
77
-		${SVN} revert ${updatedir}/*
78
-	done;
79
-fi;
69
+${GIT} checkout src/com/dmdirc/config/defaults/;
80 70
 
81 71
 PHP=`which php`
82 72
 
@@ -143,8 +133,4 @@ else
143 133
 	fi;
144 134
 fi
145 135
 
146
-if [ -d .git ]; then
147
-	$GIT checkout src/com/dmdirc/Main.java
148
-else
149
-	$SVN revert src/com/dmdirc/Main.java
150
-fi;
136
+$GIT checkout src/com/dmdirc/Main.java

+ 3
- 3
DoReports.sh Wyświetl plik

@@ -13,8 +13,8 @@ MYDIR="/home/dmdirc/google"
13 13
 # Path to scripts
14 14
 SCRIPTDIR="/home/dmdirc/scripts"
15 15
 
16
-# Path to svn binary
17
-SVN="/usr/bin/svn"
16
+# Path to git binary
17
+GIT="/usr/bin/git"
18 18
 
19 19
 # Path to ant binary
20 20
 ANT="/usr/bin/ant"
@@ -35,7 +35,7 @@ fi;
35 35
 
36 36
 cd $MYDIR
37 37
 
38
-$SVN update
38
+${GIT} pull
39 39
 
40 40
 # Anti-Clover stupidness!
41 41
 rm -Rf ${MYDIR}/.clover

+ 1
- 1
UpdateCopyright.sh Wyświetl plik

@@ -5,6 +5,6 @@ THISYEAR=`date +%Y`
5 5
 OLD="2006-"$((${THISYEAR} - 1))
6 6
 NEW="2006-"${THISYEAR}
7 7
 
8
-grep -iRI "${OLD}" ./* | grep -v /.svn/ | grep -v /.git/ | grep -v UpdateCopyright.sh | grep -v update.sh | awk -F: '{print "echo \"Updating \\\""$1"\\\"\"\nsed -i \"s/'${OLD}'/'${NEW}'/g\" \""$1"\""}' > update.sh
8
+grep -iRI "${OLD}" ./* | grep -v /.git/ | grep -v UpdateCopyright.sh | grep -v update.sh | awk -F: '{print "echo \"Updating \\\""$1"\\\"\"\nsed -i \"s/'${OLD}'/'${NEW}'/g\" \""$1"\""}' > update.sh
9 9
 sh update.sh
10 10
 rm update.sh

+ 11
- 72
installer/jar/makeJar.sh Wyświetl plik

@@ -28,13 +28,6 @@ FILENAME=DMDirc
28 28
 # full name of the file to output to
29 29
 RUNNAME="${PWD}/${FILENAME}.jar"
30 30
 
31
-# Are we a git working copy, or SVN?
32
-if [ -e ".svn" ]; then
33
-	isSVN=1
34
-else
35
-	isSVN=0
36
-fi;
37
-
38 31
 # Go!
39 32
 echo "-----------"
40 33
 if [ -e "${RUNNAME}" ]; then
@@ -47,15 +40,11 @@ showHelp() {
47 40
 	echo "The following command line arguments are known:"
48 41
 	echo "---------------------"
49 42
 	echo "-h, --help                Help information"
50
-	echo "-r, --release <version>   Generate a file based on an svn tag (or branch with -b as well)"
51
-	echo "-b, --branch              Release in -r is a branch "
52 43
 	echo "-p, --plugins <plugins>   What plugins to add to the jar file"
53 44
 	echo "-c, --compile             Recompile the .jar file (otherwise use the existing file from dist/)"
54 45
 	echo "    --jar <file>          use <file> as DMDirc.jar (ie just add the plugins to it and rename)"
55 46
 	echo "    --current             Use the current folder as the base for the build"
56 47
 	echo "-e, --extra <tag>         Tag to add to final name to distinguish this build from a standard build"
57
-	echo "-k, --keep                Keep the existing source tree when compiling"
58
-	echo "                          (don't svn update beforehand)"
59 48
 	echo "    --channel [channel]  Channel to pass to ant (if not passed, 'NONE', if passed without a value, 'STABLE')"
60 49
 	echo "---------------------"
61 50
 	exit 0;
@@ -63,18 +52,12 @@ showHelp() {
63 52
 
64 53
 # Check for some CLI params
65 54
 compileJar="false"
66
-updateSVN="true"
67 55
 isRelease=""
68 56
 finalTag=""
69 57
 BRANCH="0"
70 58
 plugins=""
71
-if [ $isSVN -eq 1 ]; then
72
-	location="../../../"
73
-	current=""
74
-else
75
-	location="../../"
76
-	current="1"
77
-fi;
59
+location="../../"
60
+current="1"
78 61
 jarfile=""
79 62
 jre=""
80 63
 jrename="jre" # Filename for JRE without the .bin
@@ -106,9 +89,6 @@ while test -n "$1"; do
106 89
 			finalTag=${1}
107 90
 			RUNNAME="${PWD}/${FILENAME}-${1}.jar"
108 91
 			;;
109
-		--keep|-k)
110
-			updateSVN="false"
111
-			;;
112 92
 		--help|-h)
113 93
 			showHelp;
114 94
 			;;
@@ -116,19 +96,8 @@ while test -n "$1"; do
116 96
 			BRANCH="1"
117 97
 			;;
118 98
 		--tag|-t)
119
-			if [ ${isSVN} -eq 1 ]; then
120
-				shift
121
-				REGEX="^[0-9]+(\.[0-9]+(\.[0-9]+)?)?$"
122
-				CHECKTAG=`echo ${1} | egrep "${REGEX}"`
123
-				if [ "" = "${CHECKTAG}" ]; then
124
-					echo "Specified tag ("${1}") is invalid."
125
-					exit 1;
126
-				fi;
127
-				TAGGED="${1}"
128
-			else
129
-				TAGGED=`git describe --tags`
130
-				TAGGED=${TAGGED%%-*}
131
-			fi;
99
+			TAGGED=`git describe --tags`
100
+			TAGGED=${TAGGED%%-*}
132 101
 			;;
133 102
 		--channel)
134 103
 			PASSEDPARAM=`echo "${2}" | grep -v ^-`
@@ -147,25 +116,6 @@ if [ "" = "${current}" ]; then
147 116
 else
148 117
 	jarPath="${location}"
149 118
 fi
150
-if [ "${isRelease}" != "" ]; then
151
-	if [ $isSVN -eq 1 ]; then
152
-		if [ "${BRANCH}" != "0" ]; then
153
-			if [ -e "${location}/${isRelease}" ]; then
154
-				jarPath="${location}/${isRelease}"
155
-			else
156
-				echo "Branch "${isRelease}" not found."
157
-				exit 1;
158
-			fi
159
-		else
160
-			if [ -e "${location}/${isRelease}" ]; then
161
-				jarPath="${location}/${isRelease}"
162
-			else
163
-				echo "Tag "${isRelease}" not found."
164
-				exit 1;
165
-			fi
166
-		fi;
167
-	fi	
168
-fi
169 119
 
170 120
 if [ "" = "${jarfile}" ]; then
171 121
 	jarfile=${jarPath}"/dist/DMDirc.jar"
@@ -173,11 +123,7 @@ if [ "" = "${jarfile}" ]; then
173 123
 		echo "Creating jar.."
174 124
 		OLDPWD=${PWD}
175 125
 		cd ${jarPath}
176
-		if [ "${updateSVN}" = "true" ]; then
177
-			if [ $isSVN -eq 1 ]; then
178
-				svn update
179
-			fi;
180
-		fi
126
+
181 127
 		ant -Dchannel=${CHANNEL} clean jar
182 128
 		if [ ! -e "dist/DMDirc.jar" ]; then
183 129
 			echo "There was an error creating the .jar file. Aborting."
@@ -207,24 +153,17 @@ if [ "${plugins}" != "" ]; then
207 153
 	rm -Rf plugins;
208 154
 fi;
209 155
 doRename=0
210
-if [ "${isRelease}" != "" ]; then
211
-	doRename=1
212
-elif [ $isSVN -eq 0 -a "${TAGGED}" != "" ]; then
156
+if [ "${TAGGED}" != "" ]; then
213 157
 	doRename=1	
214 158
 fi;
215 159
 
216 160
 if [ ${doRename} -eq 1 ]; then
217
-	if [ $isSVN -eq 1 ]; then
218
-		if [ "${BRANCH}" = "1" ]; then
219
-			isRelease=branch-${isRelease}
220
-		fi;
161
+	if [ "${TAGGED}" = "" ]; then
162
+		isRelease=branch-${isRelease}
221 163
 	else
222
-		if [ "${TAGGED}" = "" ]; then
223
-			isRelease=branch-${isRelease}
224
-		else
225
-			isRelease=${TAGGED}
226
-		fi;
227
-	fi
164
+		isRelease=${TAGGED}
165
+	fi;
166
+
228 167
 	if [ "" != "${finalTag}" ]; then
229 168
 		finalTag="-${finalTag}"
230 169
 	fi;

+ 12
- 76
installer/linux/makeInstallerLinux.sh Wyświetl plik

@@ -28,13 +28,6 @@ INSTALLERNAME=DMDirc-Setup
28 28
 # full name of the file to output to
29 29
 RUNNAME="${PWD}/${INSTALLERNAME}.run"
30 30
 
31
-# Are we a git working copy, or SVN?
32
-if [ -e ".svn" ]; then
33
-	isSVN=1
34
-else
35
-	isSVN=0
36
-fi;
37
-
38 31
 # Find out what params we should pass to things.
39 32
 # Solaris has a nice and ancient version of grep in /usr/bin
40 33
 grep -na "" /dev/null >/dev/null 2>&1
@@ -109,7 +102,6 @@ showHelp() {
109 102
 	echo "The following command line arguments are known:"
110 103
 	echo "---------------------"
111 104
 	echo "-h, --help                Help information"
112
-	echo "-r, --release <version>   Generate a file based on an svn tag (or branch with -b as well)"
113 105
 	echo "-b, --branch              Release in -r is a branch "
114 106
 	echo "-p, --plugins <plugins>   What plugins to add to the jar file"
115 107
 	echo "-c, --compile             Recompile the .jar file"
@@ -118,26 +110,18 @@ showHelp() {
118 110
 	echo "    --jar <file>          use <file> as DMDirc.jar"
119 111
 	echo "    --current             Use the current folder as the base for the build"
120 112
 	echo "-e, --extra <tag>         Tag to add to final exe name to distinguish this build from a standard build"
121
-	echo "-k, --keep                Keep the existing source tree when compiling"
122
-	echo "                          (don't svn update beforehand)"
123 113
 	echo "---------------------"
124 114
 	exit 0;
125 115
 }
126 116
 
127 117
 # Check for some CLI params
128 118
 compileJar="false"
129
-updateSVN="true"
130 119
 isRelease=""
131 120
 finalTag=""
132 121
 BRANCH="0"
133 122
 plugins=""
134
-if [ $isSVN -eq 1 ]; then
135
-	location="../../../"
136
-	current=""
137
-else
138
-	location="../../"
139
-	current="1"
140
-fi;
123
+location="../../"
124
+current="1"
141 125
 jarfile=""
142 126
 jre=""
143 127
 jrename="jre" # Filename for JRE without the .bin
@@ -175,9 +159,6 @@ while test -n "$1"; do
175 159
 			finalTag=${1}
176 160
 			RUNNAME="${PWD}/${INSTALLERNAME}-${1}.run"
177 161
 			;;
178
-		--keep|-k)
179
-			updateSVN="false"
180
-			;;
181 162
 		--help|-h)
182 163
 			showHelp;
183 164
 			;;
@@ -185,19 +166,8 @@ while test -n "$1"; do
185 166
 			BRANCH="1"
186 167
 			;;
187 168
 		--tag|-t)
188
-			shift
189
-			if [ ${isSVN} -eq 1 ]; then
190
-				REGEX="^[0-9]+(\.[0-9]+(\.[0-9]+)?)?$"
191
-				CHECKTAG=`echo ${1} | egrep "${REGEX}"`
192
-				if [ "" = "${CHECKTAG}" ]; then
193
-					echo "Specified tag ("${1}") is invalid."
194
-					exit 1;
195
-				fi;
196
-				TAGGED="${1}"
197
-			else
198
-				TAGGED=`git describe --tags`
199
-				TAGGED=${TAGGED%%-*}
200
-			fi;
169
+			TAGGED=`git describe --tags`
170
+			TAGGED=${TAGGED%%-*}
201 171
 			;;
202 172
 	esac
203 173
 	shift
@@ -207,25 +177,6 @@ if [ "" = "${current}" ]; then
207 177
 else
208 178
 	jarPath="${location}"
209 179
 fi
210
-if [ "${isRelease}" != "" ]; then
211
-	if [ $isSVN -eq 1 ]; then
212
-		if [ "${BRANCH}" != "0" ]; then
213
-			if [ -e "${location}/${isRelease}" ]; then
214
-				jarPath="${location}/${isRelease}"
215
-			else
216
-				echo "Branch "${isRelease}" not found."
217
-				exit 1;
218
-			fi
219
-		else
220
-			if [ -e "${location}/${isRelease}" ]; then
221
-				jarPath="${location}/${isRelease}"
222
-			else
223
-				echo "Tag "${isRelease}" not found."
224
-				exit 1;
225
-			fi
226
-		fi
227
-	fi;
228
-fi
229 180
 
230 181
 if [ "" = "${jarfile}" ]; then
231 182
 	jarfile=${jarPath}"/dist/DMDirc.jar"
@@ -233,9 +184,7 @@ if [ "" = "${jarfile}" ]; then
233 184
 		echo "Creating jar.."
234 185
 		OLDPWD=${PWD}
235 186
 		cd ${jarPath}
236
-		if [ "${updateSVN}" = "true" ]; then
237
-			svn update
238
-		fi
187
+
239 188
 		rm -Rf build dist
240 189
 		ant jar
241 190
 		if [ ! -e "dist/DMDirc.jar" ]; then
@@ -292,13 +241,8 @@ echo "" >> ${RUNNAME}
292 241
 tail ${TAILOPTS}$((${FUNCTIONSLINE%%:*} + 1)) installerstub.sh >> ${RUNNAME}
293 242
 
294 243
 # Add release info.
295
-if [ $isSVN -eq 1 ]; then
296
-	awk '{gsub(/###ADDITIONAL_STUFF###/,"isRelease=\"'${isRelease}'\"");print}' ${RUNNAME} > ${RUNNAME}.tmp
297
-	mv ${RUNNAME}.tmp ${RUNNAME}
298
-elif [ "${TAGGED}" != "" ]; then
299
-	awk '{gsub(/###ADDITIONAL_STUFF###/,"isRelease=\"'${TAGGED}'\"");print}' ${RUNNAME} > ${RUNNAME}.tmp
300
-	mv ${RUNNAME}.tmp ${RUNNAME}
301
-fi;
244
+awk '{gsub(/###ADDITIONAL_STUFF###/,"isRelease=\"'${TAGGED}'\"");print}' ${RUNNAME} > ${RUNNAME}.tmp
245
+mv ${RUNNAME}.tmp ${RUNNAME}
302 246
 
303 247
 FILES="DMDirc.jar";
304 248
 echo "Compressing files.."
@@ -424,24 +368,16 @@ echo "Chmodding"
424 368
 chmod a+x ${RUNNAME}
425 369
 
426 370
 doRename=0
427
-if [ "${isRelease}" != "" ]; then
428
-	doRename=1
429
-elif [ $isSVN -eq 0 -a "${TAGGED}" != "" ]; then
371
+if [ "${TAGGED}" != "" ]; then
430 372
 	doRename=1	
431 373
 fi;
432 374
 
433 375
 if [ ${doRename} -eq 1 ]; then
434
-	if [ $isSVN -eq 1 ]; then
435
-		if [ "${BRANCH}" = "1" ]; then
436
-			isRelease=branch-${isRelease}
437
-		fi;
376
+	if [ "${TAGGED}" = "" ]; then
377
+		isRelease=branch-${isRelease}
438 378
 	else
439
-		if [ "${TAGGED}" = "" ]; then
440
-			isRelease=branch-${isRelease}
441
-		else
442
-			isRelease=${TAGGED}
443
-		fi;
444
-	fi
379
+		isRelease=${TAGGED}
380
+	fi;
445 381
 	if [ "" != "${finalTag}" ]; then
446 382
 		finalTag="-${finalTag}"
447 383
 	fi;

+ 13
- 80
installer/osx/makeInstallerOSX.sh Wyświetl plik

@@ -28,13 +28,6 @@ INSTALLERNAME=DMDirc
28 28
 # full name of the file to output to
29 29
 RUNNAME="${PWD}/${INSTALLERNAME}.dmg"
30 30
 
31
-# Are we a git working copy, or SVN?
32
-if [ -e ".svn" ]; then
33
-	isSVN=1
34
-else
35
-	isSVN=0
36
-fi;
37
-
38 31
 # Linux needs an entry in fstab to allow normal users to mount things (like a
39 32
 # dmg image).
40 33
 # These 2 config vars choose what dir and file we mount so that fstab can be
@@ -106,33 +99,24 @@ showHelp() {
106 99
 	echo "The following command line arguments are known:"
107 100
 	echo "---------------------"
108 101
 	echo "-h, --help                Help information"
109
-	echo "-r, --release <version>   Generate a file based on an svn tag (or branch with -b as well)"
110 102
 	echo "-b, --branch              Release in -r is a branch "
111 103
 	echo "-p, --plugins <plugins>   What plugins to add to the jar file"
112 104
 	echo "-c, --compile             Recompile the .jar file"
113 105
 	echo "    --jar <file>          use <file> as DMDirc.jar"
114 106
 	echo "    --current             Use the current folder as the base for the build"
115 107
 	echo "-e, --extra <tag>         Tag to add to final exe name to distinguish this build from a standard build"
116
-	echo "-k, --keep                Keep the existing source tree when compiling"
117
-	echo "                          (don't svn update beforehand)"
118 108
 	echo "---------------------"
119 109
 	exit 0;
120 110
 }
121 111
 
122 112
 # Check for some CLI params
123 113
 compileJar="false"
124
-updateSVN="true"
125 114
 isRelease=""
126 115
 finalTag=""
127 116
 BRANCH="0"
128 117
 plugins=""
129
-if [ $isSVN -eq 1 ]; then
130
-	location="../../../"
131
-	current=""
132
-else
133
-	location="../../"
134
-	current="1"
135
-fi;
118
+location="../../"
119
+current="1"
136 120
 jarfile=""
137 121
 TAGGED=""
138 122
 while test -n "$1"; do
@@ -161,9 +145,6 @@ while test -n "$1"; do
161 145
 			finalTag=${1}
162 146
 			RUNNAME="${PWD}/${INSTALLERNAME}-${1}.dmg"
163 147
 			;;
164
-		--keep|-k)
165
-			updateSVN="false"
166
-			;;
167 148
 		--help|-h)
168 149
 			showHelp;
169 150
 			;;
@@ -171,19 +152,8 @@ while test -n "$1"; do
171 152
 			BRANCH="1"
172 153
 			;;
173 154
 		--tag|-t)
174
-			shift
175
-			if [ ${isSVN} -eq 1 ]; then
176
-				REGEX="^[0-9]+(\.[0-9]+(\.[0-9]+)?)?$"
177
-				CHECKTAG=`echo ${1} | egrep "${REGEX}"`
178
-				if [ "" = "${CHECKTAG}" ]; then
179
-					echo "Specified tag ("${1}") is invalid."
180
-					exit 1;
181
-				fi;
182
-				TAGGED="${1}"
183
-			else
184
-				TAGGED=`git describe --tags`
185
-				TAGGED=${TAGGED%%-*}
186
-			fi;
155
+			TAGGED=`git describe --tags`
156
+			TAGGED=${TAGGED%%-*}
187 157
 			;;
188 158
 	esac
189 159
 	shift
@@ -193,25 +163,6 @@ if [ "" = "${current}" ]; then
193 163
 else
194 164
 	jarPath="${location}"
195 165
 fi
196
-if [ "${isRelease}" != "" ]; then
197
-	if [ $isSVN -eq 1 ]; then
198
-		if [ "${BRANCH}" != "0" ]; then
199
-			if [ -e "${location}/${isRelease}" ]; then
200
-				jarPath="${location}/${isRelease}"
201
-			else
202
-				echo "Branch "${isRelease}" not found."
203
-				exit 1;
204
-			fi
205
-		else
206
-			if [ -e "${location}/${isRelease}" ]; then
207
-				jarPath="${location}/${isRelease}"
208
-			else
209
-				echo "Tag "${isRelease}" not found."
210
-				exit 1;
211
-			fi
212
-		fi
213
-	fi
214
-fi
215 166
 
216 167
 if [ "" = "${jarfile}" ]; then
217 168
 	jarfile=${jarPath}"/dist/DMDirc.jar"
@@ -219,9 +170,7 @@ if [ "" = "${jarfile}" ]; then
219 170
 		echo "Creating jar.."
220 171
 		OLDPWD=${PWD}
221 172
 		cd ${jarPath}
222
-		if [ "${updateSVN}" = "true" ]; then
223
-			svn update
224
-		fi
173
+
225 174
 		rm -Rf build dist
226 175
 		ant jar
227 176
 		if [ ! -e "dist/DMDirc.jar" ]; then
@@ -269,25 +218,15 @@ echo "Creating meta files"
269 218
 echo "APPLDMDI" > ${CONTENTSDIR}/PkgInfo
270 219
 
271 220
 doRename=0
272
-if [ "${isRelease}" != "" ]; then
273
-	doRename=1
274
-elif [ $isSVN -eq 0 -a "${TAGGED}" != "" ]; then
221
+if [ "${TAGGED}" != "" ]; then
275 222
 	doRename=1	
276 223
 fi;
277 224
 
278 225
 if [ ${doRename} -eq 1 ]; then
279
-	if [ $isSVN -eq 1 ]; then
280
-		if [ "${BRANCH}" = "1" ]; then
281
-			bundleVersion=branch-${isRelease}
282
-		else
283
-			bundleVersion=${isRelease}
284
-		fi;
226
+	if [ "${TAGGED}" = "" ]; then
227
+		bundleVersion=branch-${isRelease}
285 228
 	else
286
-		if [ "${TAGGED}" = "" ]; then
287
-			bundleVersion=branch-${isRelease}
288
-		else
289
-			bundleVersion=${TAGGED}
290
-		fi;
229
+		bundleVersion=${TAGGED}
291 230
 	fi
292 231
 else
293 232
 	bundleVersion="trunk-"`date +%Y%m%d_%H%M%S`
@@ -489,17 +428,11 @@ fi;
489 428
 echo "DMG Creation complete!"
490 429
 
491 430
 if [ ${doRename} -eq 1 ]; then
492
-	if [ $isSVN -eq 1 ]; then
493
-		if [ "${BRANCH}" = "1" ]; then
494
-			isRelease=branch-${isRelease}
495
-		fi;
431
+	if [ "${TAGGED}" = "" ]; then
432
+		isRelease=branch-${isRelease}
496 433
 	else
497
-		if [ "${TAGGED}" = "" ]; then
498
-			isRelease=branch-${isRelease}
499
-		else
500
-			isRelease=${TAGGED}
501
-		fi;
502
-	fi
434
+		isRelease=${TAGGED}
435
+	fi;
503 436
 	if [ "" != "${finalTag}" ]; then
504 437
 		finalTag="-${finalTag}"
505 438
 	fi;

+ 10
- 92
installer/release.sh Wyświetl plik

@@ -12,29 +12,12 @@ plugins_linux=""
12 12
 # Additional Jar names of plugins to add to only osx installers. (* means all)
13 13
 plugins_osx=""
14 14
 
15
-# Are we a git working copy, or SVN?
16
-if [ -e ".svn" ]; then
17
-	isSVN=1
18
-else
19
-	isSVN=0
20
-fi;
21
-
22
-
23 15
 showHelp() {
24 16
 	echo "This will generate the different DMDirc installers."
25
-	if [ ${isSVN} -eq 1 ]; then
26
-		echo "Usage: ${0} [params] <release>"
27
-		echo "Release can be either 'trunk', 'this', a valid tag, or a branch (if -b is passed)"
28
-	else
29
-		echo "Usage: ${0} [params]"
30
-	fi;
17
+	echo "Usage: ${0} [params]"
31 18
 	echo "The following params are known:"
32 19
 	echo "---------------------"
33
-	if [ ${isSVN} -eq 1 ]; then
34
-		echo "-b,  --branch                       <release> is a branch"
35
-	else
36
-		echo "-t,  --tag                          This is a tagged release"
37
-	fi;
20
+	echo "-t,  --tag                          This is a tagged release"
38 21
 	echo "     --jar <file>                   Use <file> instead of compiling a jar."
39 22
 	echo "     --fulljar <file>               Use <file> instead of compiling a jar, and don't run makeJar on it."
40 23
 	echo "     --jre                          Include a jre in the installers."
@@ -118,18 +101,8 @@ while test -n "$1"; do
118 101
 			compileJar="--compile "
119 102
 			;;
120 103
 		--tag|-t)
121
-			if [ ${isSVN} -eq 1 ]; then
122
-				shift
123
-				REGEX="^[0-9]+(\.[0-9]+(\.[0-9]+)?)?$"
124
-				CHECKTAG=`echo ${1} | egrep "${REGEX}"`
125
-				if [ "" = "${CHECKTAG}" ]; then
126
-					echo "Specified tag ("${1}") is invalid."
127
-					exit 1;
128
-				fi;
129
-				TAGGED="-t ${1} "
130
-			else
131
-				TAGGED="-t "
132
-			fi;
104
+			TAGGED="-t "
105
+
133 106
 			# Always recompile if tagging
134 107
 			compileJar="--compile "
135 108
 			;;
@@ -164,61 +137,11 @@ if [ "${plugins}" = "*" -o "${plugins_linux}" = "*" -o "${plugins_windows}" = "*
164 137
 	if [ "${plugins_osx}" = "*" ]; then plugins_osx=${allPlugins}; fi
165 138
 fi;
166 139
 
167
-if [ ${isSVN} -eq 1 ]; then
168
-	VERSION=""
169
-	if [ "${LAST}" != "" ]; then
170
-		if [ "${LAST}" = "trunk" ]; then
171
-			VERSION="Trunk"
172
-			RELEASE=""
173
-		elif [ "${LAST}" = "this" ]; then
174
-			# Work out what type of build this is!
175
-			thisDIR=${PWD}
176
-			cd ..
177
-			tempDIR=${PWD##*/}
178
-			if [ "${tempDIR}" = "trunk" ]; then
179
-				VERSION="Trunk"
180
-				echo "This is a trunk release.";
181
-			else
182
-				echo "This is not a trunk release.";
183
-				VERSION=${tempDIR}
184
-				cd ..
185
-				tempDIR=${PWD##*/}
186
-				if [ "${tempDIR}" = "tags" ]; then
187
-					echo "Release of tag "${version}
188
-					RELEASE="-r "${VERSION}
189
-					TAG="1"
190
-				elif [ "${tempDIR}" = "branches" ]; then
191
-					echo "Release of branch "${version}
192
-					BRANCH="-b "
193
-					RELEASE="-r "${VERSION}
194
-				else
195
-					VERSION="Unknown"
196
-					echo "Unknown release target - Building as trunk build"
197
-					OPT="--current ${OPT}"
198
-				fi
199
-			fi;
200
-			cd ${thisDIR}
201
-		elif [ "${BRANCH}" != "" -a ! -e "../../branches/"${LAST} ]; then
202
-			echo "Branch '"${LAST}"' not found."
203
-			exit 1;
204
-		elif [ "${BRANCH}" = "" -a ! -e "../../tags/"${LAST} ]; then
205
-			echo "Tag '"${LAST}"' not found."
206
-			exit 1;
207
-		else
208
-			RELEASE="-r "${LAST}
209
-		fi
210
-	else
211
-		echo "Usage: ${0} [params] <release>"
212
-		echo "Release can be either 'this', 'trunk' or a valid tag. (see ${0} --help for further information)"
213
-		exit 1;
214
-	fi
140
+VERSION=`git branch | grep ^* | sed "s/^* //g"`
141
+if [ "${VERSION}" = "master" ]; then
142
+	RELEASE=""
215 143
 else
216
-	VERSION=`git branch | grep ^* | sed "s/^* //g"`
217
-	if [ "${VERSION}" = "master" ]; then
218
-		RELEASE=""
219
-	else
220
-		RELEASE="-r ${VERSION}"
221
-	fi;
144
+	RELEASE="-r ${VERSION}"
222 145
 fi;
223 146
 
224 147
 JAR=`which jar`
@@ -306,13 +229,8 @@ echo "Clean Up"
306 229
 echo "================================================================"
307 230
 # Now revert the trunk so as not to break updates.
308 231
 for updatedir in ${REVERTLIST}; do
309
-	if [ ${isSVN} -eq 1 ]; then
310
-		SVN=`which svn`
311
-		${SVN} revert ${updatedir}/*
312
-	else
313
-		GIT=`which git`
314
-		${GIT} checkout ${updatedir}
315
-	fi;
232
+	GIT=`which git`
233
+	${GIT} checkout ${updatedir}
316 234
 done;
317 235
 
318 236
 if [ "1" = "${UPLOAD}" -a "" != "${TAGGED}" ]; then

+ 12
- 81
installer/windows/makeInstallerWindows.sh Wyświetl plik

@@ -35,13 +35,6 @@ INTNAME="${PWD}/${INTNAME}"
35 35
 # Get 7zip path
36 36
 ZIP=`which 7z`
37 37
 
38
-# Are we a git working copy, or SVN?
39
-if [ -e ".svn" ]; then
40
-	isSVN=1
41
-else
42
-	isSVN=0
43
-fi;
44
-
45 38
 if [ "" = "${ZIP}" ]; then
46 39
 	echo "7Zip not found, failing."
47 40
 	exit 1;
@@ -95,7 +88,6 @@ getFile() {
95 88
 
96 89
 # Check for some CLI params
97 90
 compileJar="false"
98
-updateSVN="true"
99 91
 compileSetup="false"
100 92
 useOldSetup="false"
101 93
 isRelease=""
@@ -105,13 +97,8 @@ signEXE="true"
105 97
 compilerFlags="-Xs -XX -O2 -Or -Op1"
106 98
 BRANCH="0"
107 99
 plugins=""
108
-if [ $isSVN -eq 1 ]; then
109
-	location="../../../"
110
-	current=""
111
-else
112
-	location="../../"
113
-	current="1"
114
-fi;
100
+location="../../"
101
+current="1"
115 102
 jarfile=""
116 103
 jre=""
117 104
 jrename="jre" # Filename for JRE without the .exe
@@ -122,7 +109,6 @@ showHelp() {
122 109
 	echo "The following command line arguments are known:"
123 110
 	echo "---------------------"
124 111
 	echo "-h, --help                Help information"
125
-	echo "-r, --release <version>   Generate a file based on an svn tag (or branch with -b as well)"
126 112
 	echo "-b, --branch              Release in -r is a branch "
127 113
 	echo "-s, --setup               Recompile the .exe file"
128 114
 	echo "-o,                       If setup.exe compile fails, use old version"
@@ -139,8 +125,6 @@ showHelp() {
139 125
 # probably is Dataforce and knows about this flag anyway
140 126
 #	echo "    --upx                 UPX binary if UPX is available on the path,"
141 127
 #	echo "                          (Compression Level: 4 for signed exe, 9 for unsigned)"
142
-	echo "-k, --keep                Keep the existing source tree when compiling"
143
-	echo "                          (don't svn update beforehand)"
144 128
 	echo "---------------------"
145 129
 	exit 0;
146 130
 }
@@ -194,9 +178,6 @@ while test -n "$1"; do
194 178
 		--unsigned|-u)
195 179
 			signEXE="false"
196 180
 			;;
197
-		--keep|-k)
198
-			updateSVN="false"
199
-			;;
200 181
 		--help|-h)
201 182
 			showHelp;
202 183
 			;;
@@ -204,19 +185,8 @@ while test -n "$1"; do
204 185
 			BRANCH="1"
205 186
 			;;
206 187
 		--tag|-t)
207
-			shift
208
-			if [ ${isSVN} -eq 1 ]; then
209
-				REGEX="^[0-9]+(\.[0-9]+(\.[0-9]+)?)?$"
210
-				CHECKTAG=`echo ${1} | egrep "${REGEX}"`
211
-				if [ "" = "${CHECKTAG}" ]; then
212
-					echo "Specified tag ("${1}") is invalid."
213
-					exit 1;
214
-				fi;
215
-				TAGGED="${1}"
216
-			else
217
-				TAGGED=`git describe --tags`
218
-				TAGGED=${TAGGED%%-*}
219
-			fi;
188
+			TAGGED=`git describe --tags`
189
+			TAGGED=${TAGGED%%-*}
220 190
 			;;
221 191
 	esac
222 192
 	shift
@@ -239,25 +209,6 @@ if [ "" = "${current}" ]; then
239 209
 else
240 210
 	jarPath="${location}"
241 211
 fi
242
-if [ "${isRelease}" != "" ]; then
243
-	if [ $isSVN -eq 1 ]; then
244
-		if [ "${BRANCH}" != "0" ]; then
245
-			if [ -e "${location}/${isRelease}" ]; then
246
-				jarPath="${location}/${isRelease}"
247
-			else
248
-				echo "Branch "${isRelease}" not found."
249
-				exit 1;
250
-			fi
251
-		else
252
-			if [ -e "${location}/${isRelease}" ]; then
253
-				jarPath="${location}/${isRelease}"
254
-			else
255
-				echo "Tag "${isRelease}" not found."
256
-				exit 1;
257
-			fi
258
-		fi
259
-	fi
260
-fi
261 212
 
262 213
 if [ "" = "${jarfile}" ]; then
263 214
 	jarfile=${jarPath}"/dist/DMDirc.jar"
@@ -265,9 +216,7 @@ if [ "" = "${jarfile}" ]; then
265 216
 		echo "Creating jar.."
266 217
 		OLDPWD=${PWD}
267 218
 		cd ${jarPath}
268
-		if [ "${updateSVN}" = "true" ]; then
269
-			svn update
270
-		fi
219
+
271 220
 		rm -Rf build dist
272 221
 		ant jar
273 222
 		if [ ! -e "dist/DMDirc.jar" ]; then
@@ -298,11 +247,7 @@ else
298 247
 	rm -Rf plugins;
299 248
 fi
300 249
 
301
-if [ $isSVN -eq 1 -o "${TAGGED}" = "" ]; then
302
-	echo "	ReleaseNumber: String = '${isRelease}';" > SetupConsts.inc
303
-else
304
-	echo "	ReleaseNumber: String = '${TAGGED}';" > SetupConsts.inc
305
-fi;
250
+echo "	ReleaseNumber: String = '${TAGGED}';" > SetupConsts.inc
306 251
 
307 252
 FILES=""
308 253
 # Icon Res file
@@ -317,11 +262,7 @@ echo "extractor RCDATA extractor.exe" > files.rc
317 262
 
318 263
 COMPILER_IS_BROKEN="0";
319 264
 
320
-if [ $isSVN -eq 1 -o "${TAGGED}" = "" ]; then
321
-	NUM="${1}"
322
-else
323
-	NUM="${TAGGED}"
324
-fi;
265
+NUM="${TAGGED}"
325 266
 
326 267
 
327 268
 
@@ -585,26 +526,16 @@ echo "Creating .exe"
585 526
 cat 7zS.sfx 7zip.conf "${INTNAME}" > "${RUNNAME}"
586 527
 
587 528
 doRename=0
588
-if [ "${isRelease}" != "" ]; then
589
-	doRename=1
590
-elif [ $isSVN -eq 0 -a "${TAGGED}" != "" ]; then
529
+if [ "${TAGGED}" != "" ]; then
591 530
 	doRename=1
592 531
 fi;
593 532
 
594 533
 if [ ${doRename} -eq 1 ]; then
595
-	if [ $isSVN -eq 1 ]; then
596
-		if [ "${BRANCH}" = "1" ]; then
597
-			releaseTag=branch-${isRelease}
598
-		else
599
-			releaseTag=${isRelease}
600
-		fi;
534
+	if [ "${TAGGED}" = "" ]; then
535
+		releaseTag=branch-${isRelease}
601 536
 	else
602
-		if [ "${TAGGED}" = "" ]; then
603
-			releaseTag=branch-${isRelease}
604
-		else
605
-			releaseTag=${TAGGED}
606
-		fi;
607
-	fi
537
+		releaseTag=${TAGGED}
538
+	fi;
608 539
 	ORIGNAME="DMDirc-${releaseTag}-Setup${finalTag}.exe"
609 540
 else
610 541
 	ORIGNAME="${INSTALLNAME}${finalTag}.exe"

+ 1
- 14
src/com/dmdirc/plugins/PluginInfo.java Wyświetl plik

@@ -738,20 +738,7 @@ public class PluginInfo implements Comparable<PluginInfo>, ServiceProvider {
738 738
             return true;
739 739
         }
740 740
 
741
-        /*		final String uiPackage;
742
-        if (Main.getUI().getClass().getPackage() != null) {
743
-        uiPackage = Main.getUI().getClass().getPackage().getName();
744
-        } else {
745
-        final String uiController = Main.getUI().getClass().getName();
746
-        if (uiController.lastIndexOf('.') >= 0) {
747
-        uiPackage = uiController.substring(0,uiController.lastIndexOf('.'));
748
-        } else {
749
-        uiPackage = uiController;
750
-        }
751
-        } */
752
-
753
-        if (/*!checkMinimumVersion(getMinVersion(), Main.SVN_REVISION) ||
754
-                !checkMaximumVersion(getMaxVersion(), Main.SVN_REVISION) ||*/!checkOS(getKeyValue("requires", "os", ""), System.getProperty("os.name"), System.getProperty("os.version"), System.getProperty("os.arch")) ||
741
+        if (!checkOS(getKeyValue("requires", "os", ""), System.getProperty("os.name"), System.getProperty("os.version"), System.getProperty("os.arch")) ||
755 742
                 !checkFiles(getKeyValue("requires", "files", "")) ||
756 743
                 (!preliminary && !checkPlugins(getKeyValue("requires", "plugins", ""))) ||
757 744
                 (!preliminary && !checkServices(metaData.getFlatDomain("required-services")))) {

+ 1
- 1
src/com/dmdirc/updater/UpdateChannel.java Wyświetl plik

@@ -35,7 +35,7 @@ public enum UpdateChannel {
35 35
     UNSTABLE,
36 36
     /** Nightly update chanel. */
37 37
     NIGHTLY, 
38
-    /** Not an official release (e.g. SVN). */
38
+    /** Not an official release (e.g. GIT). */
39 39
     NONE;
40 40
 
41 41
 }

Ładowanie…
Anuluj
Zapisz