blob: 8121bcd0ea6c83c5d2ae14c64e060180ec6032cd (
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
69
70
71
|
#!/bin/bash
# This is probably only useful if run on my machine, which is not
# exactly ideal
# Make that limitation explicit
if [ $(hostname -s) != 'chihiro' ]; then
echo "This script probably won't work on this machine without fixes"
exit 1
fi
SELECTOR=h:net.randombit.botan
KEY_ID=EFBADFBC
MTN_DB=$HOME/var/mtn/botan.mtn
WEB_DIR=/var/www/randombit.net/
DIST_DIR=~/Botan-dist
VERSION_DIR=v1.9
# 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/files/botan/${VERSION_DIR}
mv Botan-$VERSION.tbz* $WEB_DIR/files/botan/${VERSION_DIR}
|