7 sed s
/@VERSION@
/$ver/ |
sed s
/@PARENT@
/$prev/
11 rm -f "$GIT_INDEX_FILE"
15 git hash-object
-w --stdin
24 case $ver in *+*) die bad ver
$ver ;; esac
25 prev
=`git describe --abbrev=0 --match=dev* --tags dev$ver^|sed s/^dev//`
26 test -n "$prev" || die no prev ver
27 test -f News || die no News
30 GIT_INDEX_FILE
=`mktemp -t beanstalkd-dist-index`
34 newsobj
=`cat News pkg/newstail.in|exp|mkobj`
35 versobj
=`echo "printf '$ver'"|mkobj`
36 specobj
=`exp <pkg/beanstalkd.spec.in|mkobj`
37 git update-index
--add --cacheinfo 100644 $newsobj News
38 git update-index
--cacheinfo 100755 $versobj vers.sh
39 git update-index
--add --cacheinfo 100644 $specobj beanstalkd.spec
41 commit
=`git commit-tree $tree -p dev$ver -m "release $ver"`
42 git tag
-m "beanstalkd version $ver" v
$ver $commit
44 git rev-parse
--verify gh-pages
>/dev
/null
45 parent
=`git rev-parse --verify gh-pages`
47 postobj
=`(exp <pkg/bloghead.in; git cat-file blob v$ver:News)|mkobj`
48 post
=_posts
/`date +%Y-%m-%d`-$ver-release-notes.md
49 git update-index
--add --cacheinfo 100644 $postobj $post
51 commit
=`git commit-tree $tree -p $parent -m "announce release $ver"`
52 git update-ref
-m "commit: announce release $ver" refs
/heads
/gh-pages
$commit $parent