10 echo 'Usage: ./configure-version [--update | --clean]'
15 declare -r vpy=lib/bup/_version.py
18 hash=$(git log -1 --pretty=format:%H)
19 date=$(git log -1 --pretty=format:%ci)
20 desc=$(git describe --always --match="[0-9]*")
21 cat > $vpy.tmp-$$ <<-EOF
23 NAMES='(tag: bup-$desc)'
26 if ! test -e $vpy || ! cmp -s $vpy $vpy.tmp-$$; then
32 if test "$#" -ne 1; then
36 if ! test -f lib/bup/bupsplit.c; then
37 echo 'error: cannot find bup source tree' 1>&2
46 rm -f lib/bup/_version.py lib/bup/_version.pyc lib/bup/_version.py.tmp-*