Changeset 01846ce


Ignore:
Timestamp:
Nov 7, 2009, 9:14:36 PM (12 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
3e8625f
Parents:
8df704f
git-author:
Nelson Elhage <nelhage@mit.edu> (11/07/09 18:47:57)
git-committer:
Nelson Elhage <nelhage@mit.edu> (11/07/09 21:14:36)
Message:
do-release: Support release tarballs from random git revisions.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • scripts/do-release

    r168f8a9 r01846ce  
    88force=
    99no_tag=
     10git=
    1011
    1112for arg; do
     
    1314        -f) force=1 ;;
    1415        --no-tag) no_tag=1 ;;
     16        --git) git=1 ;;
    1517    esac
    1618done
    1719
    18 VERS=$(perl -ne 'print $1 if m{^AC_INIT\(\[[^\]]+\],\s*\[([^\]]+)\]}' configure.ac) \
    19     || die "Unable to parse barnowl version"
     20if [ "$git" ]; then
     21    force=1
     22    no_tag=1
     23    VERS=$(git describe --match='barnowl-*' HEAD | sed s,^barnowl-,,)
     24else
     25    VERS=$(perl -ne 'print $1 if m{^AC_INIT\(\[[^\]]+\],\s*\[([^\]]+)\]}' configure.ac) \
     26        || die "Unable to parse barnowl version"
     27fi
    2028TAG=barnowl-$VERS
    2129TGZ="$TAG-src"
     
    4755CODIR=$(pwd)
    4856cd "$TMPDIR/$TGZ"
     57[ "$git" ] && perl -i -pe 's{^(AC_INIT\(\[[^\]]+\],\s*)\[([^\]]+)\]}{${1}['$VERS']}' configure.ac
    4958autoreconf -fvi
    5059cd "$TMPDIR"
Note: See TracChangeset for help on using the changeset viewer.