Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • scripts/do-release

    r168f8a9 rb9df757  
    77
    88force=
    9 no_tag=
    109
    11 for arg; do
    12     case $arg in
    13         -f) force=1 ;;
    14         --no-tag) no_tag=1 ;;
    15     esac
    16 done
     10if [ "$1" = "-f" ]; then
     11    force=1
     12fi
    1713
    1814VERS=$(perl -ne 'print $1 if m{^AC_INIT\(\[[^\]]+\],\s*\[([^\]]+)\]}' configure.ac) \
     
    2521fi
    2622
    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
     23if git cat-file -t "$TAG" > /dev/null 2>&1; then
     24    die "Error: Object $TAG already exists."
    3525fi
    3626
     
    3828for sig in 1 2 13 15; do trap "exit $(($sig + 128))" $sig; done
    3929trap 'exittrap' EXIT
     30
     31git tag -s -m "BarnOwl $VERS" "$TAG"
    4032
    4133TMPDIR=$(mktemp -d /tmp/barnowl.XXXXXX)
Note: See TracChangeset for help on using the changeset viewer.