summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Karl Ramm <kcr@1ts.org>2012-01-22 02:12:38 -0500
committerGravatar Karl Ramm <kcr@1ts.org>2012-01-22 02:12:38 -0500
commit1031b9ea01768babf38963eb999da9c173461c07 (patch)
tree5cb4284ba26d9ca57cd66d485ebd2a633fa497d3
parent3130aa4bd31eb5b0ce0d1bba53d68ed7e236df55 (diff)
note the release in debian/changelog, and track the tarball on a branch
-rwxr-xr-xrelease17
1 files changed, 12 insertions, 5 deletions
diff --git a/release b/release
index caf8bcd..65add4b 100755
--- a/release
+++ b/release
@@ -1,4 +1,4 @@
-#!/bin/sh -x
+#!/bin/sh -ex
VERSION=$1
if test -z "$VERSION"; then
@@ -10,7 +10,10 @@ if test -n "$(git status --porcelain)"; then
echo $0: git status is wordy, you probably want to stash and note your branch
exit 2
fi
-git tag $VERSION -m 'release $VERSION'
+dch -v 1:${VERSION}-trunk release $VERSION
+git add debian/changelog
+git commit -m "release $VERSION"
+git tag $VERSION -m "release $VERSION"
git checkout --detach
git clean -fxd
git rm .gitignore
@@ -19,10 +22,14 @@ git rm release
echo $VERSION > VERSION
sed -e "s/@VERSION@/$VERSION/" README.in > README
git rm README.in
+sed -i -e "s/__DEV__/$VERSION/" configure.ac
libtoolize -ic
autoreconf
git add -A
-git commit -m "release $VERSION"
-git tag release/$VERSION -m "release $VERSION processed for git archive"
-
+#git commit -m "release $VERSION"
+TREE=$(git write-tree)
+COMMIT=$(echo release artifact for $VERSION | git commit-tree $TREE -p HEAD -p release/artifact)
+git tag release/$VERSION -m "release $VERSION processed for git archive" $COMMIT
+git push . $COMMIT:release/artifact
+git reset --hard master
git checkout master