]> Chaos Git - vn/FSNConverter-Linux.git/commitdiff
Build automation
authorchaoskagami <chaos.kagami@gmail.com>
Wed, 20 Aug 2014 13:58:23 +0000 (09:58 -0400)
committerchaoskagami <chaos.kagami@gmail.com>
Wed, 20 Aug 2014 13:58:23 +0000 (09:58 -0400)
.travis.yml [new file with mode: 0644]
build.sh

diff --git a/.travis.yml b/.travis.yml
new file mode 100644 (file)
index 0000000..08f801e
--- /dev/null
@@ -0,0 +1 @@
+script: ./build.sh
index 4bf0e9f184cc42beee4426b7907aa13bc7bb67ad..5342c6a8f706b3841cfd7aa89c8613565d930954 100755 (executable)
--- 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