home release generation script
authorPat McIlroy <itgpmc@gmail.com>
Sun, 27 Feb 2011 09:36:06 +0000 (01:36 -0800)
committerPatrick McIlroy <itgpmc@gmail.com>
Sun, 27 Feb 2011 12:30:30 +0000 (04:30 -0800)
generate-home-release.sh

index 71a3c64..090c0a3 100755 (executable)
@@ -2,11 +2,18 @@
 
 rm -f home-tmp.zip
 if [ "`which zip`x" = "x" ]; then
-       echo "zip command not found"
+       echo "$0: zip command not found"
        exit
 fi
-(cd assets/game-data && zip -u -r ../../home-tmp.zip *)
-./configure --with-gnu-ld --with-x
-make || (echo "Could not build OpenITG executable.  exiting..."; exit 1)
+if [ ! -d src/openitg ]; then
+       echo "$0: where's the openitg binary?"
+fi
+(cd assets/d4 && zip -u -r ../../home-tmp.zip *)
+
+# remove useless files
+zip -d home-tmp.zip 'Themes/ps2onpc/*'
+zip -d home-tmp.zip 'Themes/ps2/*'
+zip -d home-tmp.zip 'Cache/*'
 
-(cd src; zip -u ../home-tmp.zip openitg)
+(cd assets/game-data && zip -r ../../home-tmp.zip *)
+(cd src && zip ../home-tmp.zip openitg)