Skip to content

Commit

Permalink
Update build script
Browse files Browse the repository at this point in the history
  • Loading branch information
joonty committed Aug 26, 2015
1 parent 1e91292 commit 3f8a7dd
Showing 1 changed file with 2 additions and 19 deletions.
21 changes: 2 additions & 19 deletions build.sh 100644 → 100755
@@ -1,21 +1,4 @@
#!/bin/bash
${1?"Usage: $0 VERSION"}
version=$1
version=`cat VERSION`
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
tar -cvzf vdebug-$version.tar.gz doc/Vdebug.txt plugin syntax tests CHANGELOG LICENCE README.md requirements.txt vdebugtests.py VERSION

0 comments on commit 3f8a7dd

Please sign in to comment.