projects
/
fapman
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixes
[fapman]
/
updateversion.sh
diff --git
a/updateversion.sh
b/updateversion.sh
index
add306b
..
971b1a6
100755
(executable)
--- a/
updateversion.sh
+++ b/
updateversion.sh
@@
-1,2
+1,3
@@
#!/bin/sh
#!/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