-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdist.sh
executable file
·28 lines (23 loc) · 898 Bytes
/
dist.sh
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
#!/bin/sh
echo "Have you bumped the version number?"
echo "And committed?"
echo "And done cvs tag ?"
read answer
if [ ! $answer = yes ]; then
exit 0
fi
wwwdest=$HOME/projects/ddm/mapexplorer
ant jar
version=`java -jar dist/MapExplorer.jar -version | awk '{print $4}'`
mkdir tmp/MapExplorer
cp dist/MapExplorer.jar lib/*.map lib/*.properties README.txt License.txt lib/MapExplorer.bat lib/mapexplorer tmp/MapExplorer
cd tmp
unix2dos MapExplorer/*.bat
zip -9 -r MapExplorer-$version.zip MapExplorer
# source
cd ..
zip -9 tmp/MapExplorer-$version.src.zip `find src test -name '*.java' -print` build.xml License.txt \
lib/*.map README.txt lib/*.properties lib/mapexplorer lib/MapExplorer.bat
cp www/*.html www/*.png tmp/MapExplorer-$version.*zip lib/Underground_Grotto.map $wwwdest
cp www/testing/*.html www/testing/*.png $wwwdest/testing
mv $wwwdest/MapExplorer-*-test.*zip $wwwdest/testing