3
# This script is used by the keychain maintainer to generate new keychain releases.
9
# For keychain, this substitution stuff is done by the Makefile...
10
cat $1 | sed -e "s/##VERSION##/$VERSION/g"
19
rm -rf dist/$PKG-$VERSION*
20
install -d dist/$PKG-$VERSION
25
# Last step of a release is for the maintainer to update Changelog, README.rst and VERSIOn,
26
# and then run "./release.sh all", which will run the following to make the release commit
27
# and generate a release tarball. The release tarball is the current git tarball with "make"
28
# run inside it, so that keychain, keychain.1 and keychain.spec are pre-generated for the
29
# end-user. Since keychain is a script and the automated Makefile exists as a convenience
30
# for the maintainer, we don't want to pass this complexity on to the consumers of this
33
git commit -a -m "$VERSION distribution release" || die "commit failed"
34
git archive --format=tar --prefix=${PKG}-${VERSION}/ HEAD | tar xf - -C dist || die "git archive fail"
35
git push || die "keychain git push failed"
36
cd dist/$PKG-$VERSION || die "pkg cd fail"
37
# tmpclean target cleans up temporary intermediate files that were produced.
38
make clean all || die "make dist failed"
39
make tmpclean || die "make tmpclean failed"
40
cd .. || die "pkg cd .. fail"
41
tar cjf $PKG-$VERSION.tar.bz2 $PKG-$VERSION || die "release tarball failed"
42
cd .. || die "pkg cd .. again fail"
46
cp dist/$PKG-$VERSION.tar.bz2 /root/git/website/archive/$PKG/ || die "web cp failed"
47
cd /root/git/website || die "cd failed"
48
git add archive/$PKG/* || die "git add failed"
49
git commit -a -m "new $PKG $VERSION" || die "git commit failed"
50
git push || die "git push failed"
51
./install.sh || die "web update failed"
57
elif [ "$1" = "commit" ]