Skip to content

Commit 89aa164

Browse files
committed
Add build bash script for easier tarring
1 parent 11470b8 commit 89aa164

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

build.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/bash
2+
${1?"Usage: $0 VERSION"}
3+
version=$1
4+
echo "Building vdebug version $version"
5+
echo
6+
echo " -> Running tests"
7+
if python vdebugtests.py
8+
then
9+
echo " -> OK."
10+
echo " -> Creating tar from working directory..."
11+
if tar -cvzf vdebug-$version.tar.gz doc/Vdebug.txt plugin syntax tests HISTORY LICENCE README.md requirements.txt vdebugtests.py VERSION
12+
then
13+
echo " -> OK, created tar at vdebug-$version.tar.gz."
14+
else
15+
echo " -> ERROR: failed to build tar, exiting"
16+
exit 1
17+
fi
18+
else
19+
echo " -> ERROR: tests failed, exiting"
20+
exit 1
21+
fi

0 commit comments

Comments
 (0)