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