diff options
| author | Paul Buetow <paul@buetow.org> | 2013-04-06 13:14:44 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2013-04-06 13:14:44 +0200 |
| commit | c8b2ef7b899766d04562f7e04a84251cea8fa701 (patch) | |
| tree | 52816b17c17e2db0cf89e68537ad1a52392f1510 /scripts/version.sh | |
| parent | ca28c0e618890330d429c0dc12429255b20f0c90 (diff) | |
tagging ychat-0.8.0ychat-0.8.0
Diffstat (limited to 'scripts/version.sh')
| -rwxr-xr-x | scripts/version.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/scripts/version.sh b/scripts/version.sh index be1b351..46b9fc5 100755 --- a/scripts/version.sh +++ b/scripts/version.sh @@ -1,6 +1,11 @@ #!/bin/sh # The yChat Project (2005) # -# This script shows yChat VERSION-BRANCH +# This script shows yChat VERSION-BRANCH Build BUILDNUMBER + +version=`grep VERSION src/msgs.h | head -n 1 | cut -d'"' -f2` +branch=`grep BRANCH src/msgs.h | head -n 1 | cut -d'"' -f2` +build=`grep BUILD src/msgs.h | tail -n 1 | cut -d' ' -f3` +echo "yChat $version-$branch Build $build" + -sed -n 's/.*VERSION.*: \(.*\)".*/\1/p' src/msgs.h |
