|
@@ -32,7 +32,7 @@ RUNNAME="${PWD}/${FILENAME}.jar"
|
32
|
32
|
echo "-----------"
|
33
|
33
|
if [ -e "${RUNNAME}" ]; then
|
34
|
34
|
echo "Removing existing file"
|
35
|
|
- rm -Rf ./*.jar
|
|
35
|
+ rm -Rf ${RUNNAME}
|
36
|
36
|
fi
|
37
|
37
|
|
38
|
38
|
showHelp() {
|
|
@@ -135,8 +135,7 @@ if [ "" = "${jarfile}" ]; then
|
135
|
135
|
if [ "${updateSVN}" = "true" ]; then
|
136
|
136
|
svn update
|
137
|
137
|
fi
|
138
|
|
- rm -Rf build dist
|
139
|
|
- ant jar
|
|
138
|
+ ant clean jar
|
140
|
139
|
if [ ! -e "dist/DMDirc.jar" ]; then
|
141
|
140
|
echo "There was an error creating the .jar file. Aborting."
|
142
|
141
|
exit 1;
|
|
@@ -149,7 +148,7 @@ elif [ ! -e "${jarfile}" ]; then
|
149
|
148
|
fi;
|
150
|
149
|
|
151
|
150
|
echo "Copying jar (${jarfile}).."
|
152
|
|
-cp ${jarfile} "./DMDirc.jar"
|
|
151
|
+cp ${jarfile} ${RUNNAME}
|
153
|
152
|
|
154
|
153
|
echo "Adding plugins to jar"
|
155
|
154
|
ln -sf ${jarPath}"/plugins"
|
|
@@ -157,7 +156,7 @@ pluginList=""
|
157
|
156
|
for plugin in ${plugins}; do
|
158
|
157
|
pluginList=${pluginList}" plugins/${plugin}"
|
159
|
158
|
done
|
160
|
|
-jar -uvf "DMDirc.jar" ${pluginList}
|
|
159
|
+jar -uvf "${RUNNAME}" ${pluginList}
|
161
|
160
|
rm -Rf plugins;
|
162
|
161
|
|
163
|
162
|
if [ "${isRelease}" != "" ]; then
|