diff --git a/sleepyhead/build_number.h b/sleepyhead/build_number.h index ec10d6b9..4644d8a1 100644 --- a/sleepyhead/build_number.h +++ b/sleepyhead/build_number.h @@ -1 +1 @@ -const int build_number = 6; +const int build_number = 7; diff --git a/sleepyhead/scripts/build_number b/sleepyhead/scripts/build_number index 1e8b3149..7f8f011e 100644 --- a/sleepyhead/scripts/build_number +++ b/sleepyhead/scripts/build_number @@ -1 +1 @@ -6 +7 diff --git a/version.sh b/version.sh new file mode 100755 index 00000000..f195d85b --- /dev/null +++ b/version.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +version=`cat ./sleepyhead/version.h | perl -ne 'my @array = /^const\s*int (major|minor|revision)_(version|number) = (\d+;).*/; print $array[2]' | perl -ne 'my @ar=split(";"); print join(".", @ar);'` +buildno=`cat ./sleepyhead/scripts/build_number` +gitversion=`git rev-parse --short HEAD` +echo "SleepyHead Source Information" +echo "Current Version: v${version}-${buildno} (git rev ${gitversion})" +echo "Last commit: `git log -1 --format=%cd`" +echo "Use 'git pull' to get up to date"