blob: 152b7e89b42808193a22f2da581413ab9cf093b3 (
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
|
#!/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
WEB_DIR=$HOME/projects/www/files/botan/v1.9/
DIST_DIR=~/Botan-dist
# 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
cp log.txt ../..
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* $WEB_DIR
mv Botan-$VERSION.tbz* $WEB_DIR
|