From: chaoskagami Date: Wed, 20 Aug 2014 13:58:23 +0000 (-0400) Subject: Build automation X-Git-Url: https://chaos.moe/g/?a=commitdiff_plain;h=d3eb9b3b276a20493d058a6e78f6c2e9e0a6b91c;p=vn%2FFSNConverter-Linux.git Build automation --- diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..08f801e --- /dev/null +++ b/.travis.yml @@ -0,0 +1 @@ +script: ./build.sh diff --git a/build.sh b/build.sh index 4bf0e9f..5342c6a 100755 --- a/build.sh +++ b/build.sh @@ -9,7 +9,16 @@ if [ "$F" == "build" ]; then cp -ra Distrib Out - cp UI/FSN* Out/ + if [ ! -e FSNConverter.jar ]; then + exit 1 + fi + + cp UI/FSNConverter.jar Out/ + + if [ ! -e FSNInstaller.jar ]; then + exit 1 + fi + cp -ra UI/lib Out/lib cp -ra UI/template Out/template @@ -27,14 +36,30 @@ if [ "$F" == "build" ]; then cd ahx2wav chmod +x make.sh ./make.sh ahx2wav + + if [ ! -e ahx2wav ]; then + exit 1 + fi + mv ahx2wav ../../Out/bin/ cd ../ima2raw g++ -o ima2raw ima2raw.cpp + + if [ ! -e ima2raw ]; then + exit 1 + fi + + mv ima2raw ../../Out/bin/ cd ../tlg2bmp g++ -o tlg2bmp tlg2bmp.cpp + + if [ ! -e tlg2bmp ]; then + exit 1 + fi + mv tlg2bmp ../../Out/bin/ elif [ "$F" == "clean" ]; then rm -rf Out @@ -44,3 +69,5 @@ elif [ "$F" == "clean" ]; then ant clean cd .. fi + +exit 0