blob: 479de24d1025d0354029bde03b16741458c0e665 (
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
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
|
#!/bin/bash
# This is probably only useful if run on my machine, which is not
# exactly ideal
SELECTOR=h:net.randombit.botan
KEY_ID=EFBADFBC
MTN_DB=/storage/mtn/botan.mtn
DIST_DIR=~/Botan-dist
DIST_FILES_DIR=$HOME/projects/www/files/botan/v1.9/
WEB_DOCS_DIR=$HOME/projects/www/htdocs/botan/htdocs/
# You shouldn't have to change anything after this
mkdir -p $DIST_DIR
cd $DIST_DIR
mtn -d $MTN_DB checkout -r $SELECTOR Botan
VERSION=$(Botan/configure.py --version)
mv Botan Botan-$VERSION
cd Botan-$VERSION
rm -rf _MTN
rm -f .mtn-ignore
# Build docs
cd doc
for doc in api tutorial building python
do
latex $doc.tex
latex $doc.tex
dvips $doc.dvi -o
pdflatex $doc.tex
pdflatex $doc.tex
cp $doc.pdf $DIST_DIR
mv $doc.ps $DIST_DIR
# Clean up after TeX
rm -f $doc.aux $doc.log $doc.dvi $doc.toc
done
botan_log_to_html log.txt > ../../log.html
cd .. # topdir
cd .. # now in DIST_DIR
tar -cf Botan-$VERSION.tar Botan-$VERSION
bzip2 -9 -k Botan-$VERSION.tar
gzip -9 Botan-$VERSION.tar
rm -rf Botan-$VERSION
mv Botan-$VERSION.tar.gz Botan-$VERSION.tgz
mv Botan-$VERSION.tar.bz2 Botan-$VERSION.tbz
echo "*****************************************************"
read -a PASSWORD -p "Enter PGP password (or ^C to skip signatures): "
echo $PASSWORD | gpg --batch --armor -b --passphrase-fd 0 -u $KEY_ID Botan-$VERSION.tgz
echo $PASSWORD | gpg --batch --armor -b --passphrase-fd 0 -u $KEY_ID Botan-$VERSION.tbz
mv Botan-$VERSION.tgz* Botan-$VERSION.tbz* $DIST_FILES_DIR
mv log.html $WEB_DOCS_DIR
echo "Now edit download.html, and add a release notice to pyblosxom"
|