Skip to content

Commit 3f8a7dd

Browse files
committed
Update build script
1 parent 1e91292 commit 3f8a7dd

1 file changed

Lines changed: 2 additions & 19 deletions

File tree

build.sh

100644100755
Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,4 @@
11
#!/bin/bash
2-
${1?"Usage: $0 VERSION"}
3-
version=$1
2+
version=`cat VERSION`
43
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
4+
tar -cvzf vdebug-$version.tar.gz doc/Vdebug.txt plugin syntax tests CHANGELOG LICENCE README.md requirements.txt vdebugtests.py VERSION

0 commit comments

Comments
 (0)