Remove not used code (JLR define)
[mmh] / config / version.sh
1 #!/bin/sh
2 #
3 # version.sh -- script to create version string(s) for mmh.
4 #
5 # You need to pass the script the version number to use.
6 #
7
8 if [ -z "$1" ]; then
9         echo "usage: version.sh VERSION" 1>&2
10         exit 1
11 fi
12
13 VERSION=$1
14
15 git_info="$(git show --pretty'=format: [%h -- %cD]' HEAD | head -n1)"
16
17 echo "char *version_str = \"mmh-${VERSION}${git_info}\";"
18 echo "char *version_num = \"mmh-$VERSION\";"