-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrelease
executable file
·83 lines (61 loc) · 1.59 KB
/
release
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#!/bin/sh
package='aiaa-latex'
class='aiaa-tc.cls'
set -e
if test $# -ne 1; then
echo "usage: $0 VERSION"
exit 1
fi
version=$1
if ! echo $version | grep -E "^[0-9]+\.[0-9]+\.[0-9]+$"
then
echo "VERSION should be of the form 1.2.5 (major.minor.revision)"
exit 1
fi
if ! grep -q $version $class
then
echo "Error: version skew. '$version' does not match that in class"
grep -H ProvidesClass $class
exit 1
fi
date=`date +%Y/%m/%d`
if ! grep -q $date $class
then
echo "Error: date skew. '$date' does not match that in class"
grep -H ProvidesClass $class
exit 1
fi
if ! grep -q $version History.txt
then
echo "Error: no release notes for '$version' found in History.txt"
grep -H $version History.txt
exit 1
fi
history_date=`date +%Y-%m-%d`
if ! grep -q $history_date History.txt
then
echo "Error: '$history_date' not found in History.txt"
grep -H $history_date History.txt
exit 1
fi
# Refresh sample document
pdflatex sample > refresh-sample.log
bibtex sample >> refresh-sample.log
pdflatex sample >> refresh-sample.log
pdflatex sample >> refresh-sample.log
rm -f sample.{bbl,blg,aux,log,out} refresh-sample.log
# Make bundle
mkdir $package-$version
cp `cat Manifest.txt` $package-$version
zip -rq $package-$version.zip $package-$version
rm -rf $package-$version
cat << MESSAGE
`openssl dgst -sha1 $package-$version.zip`
Don't forget to tag,
svn cp -m'To tag release $version.' \\
https://$package.googlecode.com/svn/trunk \\
https://$package.googlecode.com/svn/tags/rel_$version
and upload,
http://code.google.com/p/$package/downloads/list
http://ctan.org/upload
MESSAGE