blob: eb85c4bded21b682c9560bb0c5b45697a54b0ef0 (
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
29
30
31
32
33
34
35
36
37
38
39
40
41
|
#!/bin/sh -e
if [ -z "$1" ]; then
echo "Usage: $0 <version>"
exit
fi
version=$1
date=`date +%Y-%m-%d`
sed -i 's/^\(Version:\).*$/\1 v'"$version"'/' README
sed -i 's/^\(Last modified:\).*$/\1 '"$date"'/' README
sed -i 's/^\(\\newcommand\*{\\pkgversion}\).*$/\1{v'"$version"'}/' vc-manual.tex
tmpfile=`mktemp`
(
echo "v$version ($date)"
echo "----------------------"
echo "* TODO: Describe the changes here."
echo
echo
cat CHANGES
) > $tmpfile
mv $tmpfile CHANGES
sensible-editor CHANGES
git add CHANGES README vc-manual.tex
git commit -sm "release v$version"
cd git-unix/
./vc -m
mv vc.tex ..
cd ..
pdflatex vc-manual.tex
pdflatex vc-manual.tex
git add vc-manual.pdf
git commit -sm "update manual for version $version"
git tag -sm "release v$version" v$version
git archive -v -o vc-v$version.zip --prefix=vc/ v$version
|