X-Git-Url: https://arthur.barton.de/gitweb/?p=bup.git;a=blobdiff_plain;f=configure-version;h=0ce6101622179caae99ae3a535424a8361a8f28e;hp=87126b7ea855888bbf6c38c3dea48bd4c66a5934;hb=HEAD;hpb=8ae556b8d341bb73d862f5af6a2b70e05fae3a4c diff --git a/configure-version b/configure-version deleted file mode 100755 index 87126b7..0000000 --- a/configure-version +++ /dev/null @@ -1,33 +0,0 @@ -#!/usr/bin/env bash - -set -eo pipefail - -top="$(pwd)" -vpy=lib/bup/_version.py -readonly top vpy - -usage() -{ - echo 'Usage: ./configure-version [--update | --clean]' -} - -if test "$#" -ne 1; then - usage 1>&2; exit 1 -fi - -case "$1" in - --update) - rm -f $vpy.tmp-$$ - ./format-subst.pl $vpy.pre > $vpy.tmp-$$ - if ! test -e $vpy || ! cmp -s $vpy $vpy.tmp-$$; then - mv $vpy.tmp-$$ $vpy; - fi - rm -f $vpy.tmp-$$ - ;; - --clean) - rm -f lib/bup/_version.py lib/bup/_version.pyc lib/bup/_version.py.tmp-* - ;; - *) - usage 1>&2; exit 1 - ;; -esac