Changeset 168f8a9


Ignore:
Timestamp:
Sep 20, 2009, 8:27:38 PM (12 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
633db30
Parents:
d7cc50b
Message:
do-release: Support --no-tag for test builds.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • scripts/do-release

    rb9df757 r168f8a9  
    77
    88force=
     9no_tag=
    910
    10 if [ "$1" = "-f" ]; then
    11     force=1
    12 fi
     11for arg; do
     12    case $arg in
     13        -f) force=1 ;;
     14        --no-tag) no_tag=1 ;;
     15    esac
     16done
    1317
    1418VERS=$(perl -ne 'print $1 if m{^AC_INIT\(\[[^\]]+\],\s*\[([^\]]+)\]}' configure.ac) \
     
    2125fi
    2226
    23 if git cat-file -t "$TAG" > /dev/null 2>&1; then
    24     die "Error: Object $TAG already exists."
     27if ! [ "$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"
     33else
     34    TAG=HEAD
    2535fi
    2636
     
    2838for sig in 1 2 13 15; do trap "exit $(($sig + 128))" $sig; done
    2939trap 'exittrap' EXIT
    30 
    31 git tag -s -m "BarnOwl $VERS" "$TAG"
    3240
    3341TMPDIR=$(mktemp -d /tmp/barnowl.XXXXXX)
Note: See TracChangeset for help on using the changeset viewer.