blob: 88edc71be9f6f57ae086443010715e73a94f5591 (
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
|
#!/bin/bash
SELECTOR=h:net.randombit.botan
KEY_ID=EFBADFBC
MTN_DB=${HOME}/var/mtn/botan.mtn
WEB_DIR=${HOME}/projects/www
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.pl --version | sed 's/Botan //')
mv Botan Botan-$VERSION
cd Botan-$VERSION
rm -rf _MTN
rm -f .mtn-ignore
# Build docs
cd doc
for doc in api tutorial building
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/archive/v1.7
mv Botan-$VERSION.tbz* $WEB_DIR/files/botan/
mv -f log.txt $WEB_DIR/botan/log.txt
|