diff options
| author | admin (centauri.fritz.box) <puppet@mx.buetow.org> | 2014-07-01 20:17:26 +0200 |
|---|---|---|
| committer | admin (centauri.fritz.box) <puppet@mx.buetow.org> | 2014-07-01 20:17:26 +0200 |
| commit | 0b4ccf59b27f0a8de71b10120b50c916fdbc46a0 (patch) | |
| tree | 4252a66e1438004c08c1ac96338a0352a2408d58 /scripts/version.sh | |
| parent | a7aa66722070de6ab2e84e5a1311b96c98f36e14 (diff) | |
| parent | c67ed39bc994a0aef06454c1e3044e79f712b739 (diff) | |
Merge remote-tracking branch 'remotes/github/ychat-0.7' into ychat-0.7ychat-0.7
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 |
