tests/testlib/map-hg-rev.sh
author Anton Shestakov <av6@dwimlabs.net>
Thu, 13 Feb 2020 19:04:00 +0800
changeset 5128 7c2ca5e3a7ba
parent 4966 4f3c87584a4a
permissions -rwxr-xr-x
packaging: simply prune some directories in MANIFEST.in in a dedicated block exclude+recursive-exclude is basically prune.

#!/bin/sh
set -eu

case $1 in
    default)
        echo default
        ;;
    mercurial-*)
        exp=$(echo "$1" | cut -d- -f2 | sed 's#\.#\\.#g')
        echo 'max(tag("re:^'"$exp"'"))'
        ;;
    *)
        echo stable
        ;;
esac