Changeset 01846ce for scripts/do-release
- Timestamp:
- Nov 7, 2009, 9:14:36 PM (15 years ago)
- Branches:
- master, release-1.10, 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
scripts/do-release
r168f8a9 r01846ce 8 8 force= 9 9 no_tag= 10 git= 10 11 11 12 for arg; do … … 13 14 -f) force=1 ;; 14 15 --no-tag) no_tag=1 ;; 16 --git) git=1 ;; 15 17 esac 16 18 done 17 19 18 VERS=$(perl -ne 'print $1 if m{^AC_INIT\(\[[^\]]+\],\s*\[([^\]]+)\]}' configure.ac) \ 19 || die "Unable to parse barnowl version" 20 if [ "$git" ]; then 21 force=1 22 no_tag=1 23 VERS=$(git describe --match='barnowl-*' HEAD | sed s,^barnowl-,,) 24 else 25 VERS=$(perl -ne 'print $1 if m{^AC_INIT\(\[[^\]]+\],\s*\[([^\]]+)\]}' configure.ac) \ 26 || die "Unable to parse barnowl version" 27 fi 20 28 TAG=barnowl-$VERS 21 29 TGZ="$TAG-src" … … 47 55 CODIR=$(pwd) 48 56 cd "$TMPDIR/$TGZ" 57 [ "$git" ] && perl -i -pe 's{^(AC_INIT\(\[[^\]]+\],\s*)\[([^\]]+)\]}{${1}['$VERS']}' configure.ac 49 58 autoreconf -fvi 50 59 cd "$TMPDIR"
Note: See TracChangeset
for help on using the changeset viewer.