]> git.pond.sub.org Git - empserver/blob - src/scripts/gen-tarball-version
222dc9864a6c69b473bf6e133e0b9993c3b2a84a
[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 nv=$1-$2
9
10 printf "%s" "$2" >$nv/.tarball-version
11 >$nv/.dirty-stamp
12
13 if [ "$2" != "`$nv/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?" >&2
17     exit 1
18 fi