From 498c570e089b41f122584ace973a69b7590232cd Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Tue, 27 Jan 2009 23:25:11 +0000 Subject: --- scripts/version.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 scripts/version.sh (limited to 'scripts/version.sh') diff --git a/scripts/version.sh b/scripts/version.sh new file mode 100755 index 0000000..2f919ba --- /dev/null +++ b/scripts/version.sh @@ -0,0 +1,11 @@ +#!/bin/sh +# The yChat Project (2005) +# +# This script shows yChat VERSION-BRANCH Build BUILDNUMBER + +version=`grep VERSION src/build.h | head -n 1 | cut -d'"' -f2` +branch=`grep BRANCH src/build.h | head -n 1 | cut -d'"' -f2` +build=`grep BUILD src/build.h | tail -n 1 | cut -d' ' -f3` +echo "yChat $version-$branch Build $build" + + -- cgit v1.2.3