Changes in / [2693b12:633db30]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
scripts/do-release
rb9df757 r168f8a9 7 7 8 8 force= 9 no_tag= 9 10 10 if [ "$1" = "-f" ]; then 11 force=1 12 fi 11 for arg; do 12 case $arg in 13 -f) force=1 ;; 14 --no-tag) no_tag=1 ;; 15 esac 16 done 13 17 14 18 VERS=$(perl -ne 'print $1 if m{^AC_INIT\(\[[^\]]+\],\s*\[([^\]]+)\]}' configure.ac) \ … … 21 25 fi 22 26 23 if git cat-file -t "$TAG" > /dev/null 2>&1; then 24 die "Error: Object $TAG already exists." 27 if ! [ "$no_tag" ]; then 28 if git cat-file -t "$TAG" > /dev/null 2>&1; then 29 die "Error: Object $TAG already exists." 30 fi 31 32 git tag -s -m "BarnOwl $VERS" "$TAG" 33 else 34 TAG=HEAD 25 35 fi 26 36 … … 28 38 for sig in 1 2 13 15; do trap "exit $(($sig + 128))" $sig; done 29 39 trap 'exittrap' EXIT 30 31 git tag -s -m "BarnOwl $VERS" "$TAG"32 40 33 41 TMPDIR=$(mktemp -d /tmp/barnowl.XXXXXX)
Note: See TracChangeset
for help on using the changeset viewer.