Browse Source

Allow makeJar to be not run if passing a jar that already has plugins in it.


git-svn-id: http://svn.dmdirc.com/trunk@3032 00569f92-eb28-0410-84fd-f71c24880f
tags/0.6
Shane Mc Cormack 16 years ago
parent
commit
ae8ce77f0b
1 changed files with 22 additions and 13 deletions
  1. 22
    13
      installer/release.sh

+ 22
- 13
installer/release.sh View File

@@ -17,6 +17,7 @@ showHelp() {
17 17
 	echo "---------------------"
18 18
 	echo "-b,  --branch                       <release> is a branch"
19 19
 	echo "     --jar <file>                   Use <file> instead of compiling a jar."
20
+	echo "     --fulljar <file>               Use <file> instead of compiling a jar, and don't run makeJar on it."
20 21
 	echo "     --jre                          Include a jre in the installers."
21 22
 	echo "     --jre64                        Include a 64bit jre in the installers."
22 23
 	echo "-p,  --plugins <plugins>            Plugins to add to all the jars."
@@ -34,6 +35,7 @@ OPT=""
34 35
 BRANCH=""
35 36
 JARFILE=""
36 37
 JRE=""
38
+FULLJAR=""
37 39
 while test -n "$1"; do
38 40
 	LAST=${1}
39 41
 	case "$1" in
@@ -45,6 +47,11 @@ while test -n "$1"; do
45 47
 			shift
46 48
 			JARFILE="--jar ${1} "
47 49
 			;;
50
+		--fulljar)
51
+			shift
52
+			JARFILE="--jar ${1} "
53
+			FULLJAR="1"
54
+			;;
48 55
 		--jre|--jre64)
49 56
 			JRE="${1} "
50 57
 			;;
@@ -207,20 +214,22 @@ fi
207 214
 cd ${THISDIR}
208 215
 rm -Rf installer_temp
209 216
 
210
-echo "================================================================"
211
-echo "Building Release Jar"
212
-echo "================================================================"
213
-cd jar
214
-./makeJar.sh ${OPT}${JARFILE}${JRE}-c -k -s ${BRANCH}${RELEASE} -p "${plugins}"
215
-RESULT=${?}
216
-cd ${THISDIR}
217
+if [ "" = "${FULLJAR}" ]; then
218
+	echo "================================================================"
219
+	echo "Building Release Jar"
220
+	echo "================================================================"
221
+	cd jar
222
+	./makeJar.sh ${OPT}${JARFILE}${JRE}-c -k -s ${BRANCH}${RELEASE} -p "${plugins}"
223
+	RESULT=${?}
224
+	cd ${THISDIR}
217 225
 
218
-if [ ${RESULT} -eq 0 ]; then
219
-	JARNAME=`ls -1 output | grep jar$ | tail -n 1`
220
-	JARFILE="--jar ../output/${JARNAME} "
221
-else
222
-	echo "Failed to build release jar, aborting."
223
-	exit 1;
226
+	if [ ${RESULT} -eq 0 ]; then
227
+		JARNAME=`ls -1 output | grep jar$ | tail -n 1`
228
+		JARFILE="--jar ../output/${JARNAME} "
229
+	else
230
+		echo "Failed to build release jar, aborting."
231
+		exit 1;
232
+	fi;
224 233
 fi;
225 234
 
226 235
 echo "================================================================"

Loading…
Cancel
Save