Permalink
Browse files

Add build bash script for easier tarring

  • Loading branch information...
1 parent 6131eb6 commit bdc812befe7d570ad826eaf753ac2c03c4b6e239 @joonty committed Mar 6, 2013
Showing with 21 additions and 0 deletions.
  1. +21 −0 build.sh
View
@@ -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

0 comments on commit bdc812b

Please sign in to comment.