summaryrefslogtreecommitdiff
path: root/release
blob: caf8bcd30205c469d254c6e47857149be53bd7fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh -x

VERSION=$1
if test -z "$VERSION"; then
   echo $0: usage: $0 version
   exit 1
fi

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'
git checkout --detach
git clean -fxd
git rm .gitignore
git rm -r debian
git rm release
echo $VERSION > VERSION
sed -e "s/@VERSION@/$VERSION/" README.in > README
git rm README.in
libtoolize -ic
autoreconf
git add -A
git commit -m "release $VERSION"
git tag release/$VERSION -m "release $VERSION processed for git archive"

git checkout master