diff options
| author | admin (centauri.fritz.box) <puppet@mx.buetow.org> | 2014-06-30 23:29:37 +0200 |
|---|---|---|
| committer | admin (centauri.fritz.box) <puppet@mx.buetow.org> | 2014-06-30 23:29:37 +0200 |
| commit | 751eada68e49f9ffae9a0be743d88a3ce956883f (patch) | |
| tree | 153d0a87fbe67911da4fde73e327b272b437c156 /scripts/version.sh | |
| parent | 002c8534bfe2c266959dd42c9c71c17182977d87 (diff) | |
| parent | dee37a84ae65ba8bd1e0dab6132955bbc195fa57 (diff) | |
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 |
