summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xprepare-release.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/prepare-release.sh b/prepare-release.sh
index a681e23..23d4cab 100755
--- a/prepare-release.sh
+++ b/prepare-release.sh
@@ -20,8 +20,8 @@
TMPDIR="/tmp"
ORIGDIR=$(pwd)
-VERSION=$(gawk -F \" '{print $2}' src/version.h | \
- sed -e ':a;N;$!ba;s/\n//g')
+VERSION=$(grep AC_INIT configure.ac | \
+ awk -F \[ '{print $3}' | awk -F \] '{print $1}')
echo Packaging GetHT version $VERSION