10 echo "last log lines are"
12 echo "see file $LOG for details"
18 git checkout master 2>>$LOG 1>>$LOG
19 if [ -f stashed ]; then
20 git stash pop 2>>$LOG 1>>$LOG
25 # Check if there are pending changes
26 status=`git status --porcelain|grep -v "??"`
27 if [ ! -z "$status" ]; then
28 echo "The following files are not committed:"
33 git stash save 2>&1 >>$LOG
38 tag=`git tag |tail -n 1`
49 echo "Checking out $tag"
50 git checkout $tag 2>>$LOG 1>>$LOG || fail "checking out"
53 mvn clean install -DskipTests=true >>build.log || fail "building project"
55 echo "Collecting dependencies"
56 mvn dependency:copy-dependencies >> build.log || fail "collecting dependencies"
57 cp target/dependency/*.jar $DIR/lib || fail "copying dependencies"
59 echo "Copying Aquarium classes"
60 cp target/$tag.jar $DIR/lib || fail "copying $tag.jar"
62 echo "Copying scripts and config files"
63 cp aquarium.sh $DIR/bin || fail "copying aquarium.sh"
65 echo "Creating archive"
66 tar zcvf $tag.tar.gz $DIR >> build.log 2>&1 || fail "creating archive"
73 echo "File $tag.tar.gz created succesfully"
74 # vim: set sta sts=4 shiftwidth=4 sw=4 et ai :