diff options
author | Ryu, Han-seok <acoustic80@nate.com> | 2014-09-08 18:02:53 +0900 |
---|---|---|
committer | Ryu, Han-seok <acoustic80@nate.com> | 2014-09-08 18:02:53 +0900 |
commit | 2092c06033d45e6451ea0b3992d271bb7918be19 (patch) | |
tree | 965a8c69ce644bdbcaa798617a200a84de713146 /build.sh | |
parent | f0e40f921c461bbd474f842688f935daaad894a1 (diff) | |
download | vdebug-2092c06033d45e6451ea0b3992d271bb7918be19.zip |
first commit
Diffstat (limited to 'build.sh')
-rw-r--r-- | build.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..7f369c4 --- /dev/null +++ b/build.sh @@ -0,0 +1,21 @@ +#!/bin/bash +${1?"Usage: $0 VERSION"} +version=$1 +echo "Building vdebug version $version" +echo +echo " -> Running tests" +if python vdebugtests.py +then + echo " -> OK." + echo " -> Creating tar from working directory..." + if tar -cvzf vdebug-$version.tar.gz doc/Vdebug.txt plugin syntax tests HISTORY LICENCE README.md requirements.txt vdebugtests.py VERSION + then + echo " -> OK, created tar at vdebug-$version.tar.gz." + else + echo " -> ERROR: failed to build tar, exiting" + exit 1 + fi +else + echo " -> ERROR: tests failed, exiting" + exit 1 +fi |