3 # version.sh -- script to create version string(s) for mmh.
5 # You can pass the top soucre directory to the script.
15 echo "No version file found" 1>&2
16 echo "usage: $0 [mmh-sourcedir]" 1>&2
20 version="`sed q VERSION`"
24 if [ -d ".git" ]; then
25 current=`git log -n 1 --pretty=format:+%h HEAD`
26 release=`git log -n 1 --pretty=format:+%h "mmh-$version"`
27 if [ "$current" != "$release" ]
33 echo mmh-"$version""$git_info"