]> git.pond.sub.org Git - empserver/blob - src/scripts/gen-tarball-version
Make: Make src/scripts/gen-tarball-version a bit nicer
[empserver] / src / scripts / gen-tarball-version
1 #!/bin/sh -e
2
3 if [ $# = 0 ]; then
4     echo "Usage: $0 NAME VERSION (FILE | -C DIR)..."
5     exit 1
6 fi
7
8 cd "$1-$2"
9
10 printf "%s" "$2" >.tarball-version
11 >.dirty-stamp
12
13 if [ "$2" != "`./configure --version | sed -n '/^Wolfpack Empire/s/.* //p'`" ]
14 then
15     echo "Output of configure --version does not match $2" >&2
16     echo "Need to regenerate stale configure with 'autoconf -f'?" >&2
17     exit 1
18 fi