fixes
[fapman] / updateversion.sh
index add306b..971b1a6 100755 (executable)
@@ -1,2 +1,3 @@
 #!/bin/sh
-ver=`pwd | cut -d - -f 2-`; echo "const QString PROGRAM_VERSION=\"$ver\";" > version.h
+ver=`cat debian/changelog | sed -n -e '1p'| cut -d ' ' -f 2 | tr -d "()" | cut -d '-' -f 1`
+echo "const QString PROGRAM_VERSION=\"$ver\";" > version.h