Statistics
| Branch: | Revision:

iof-bird-daemon / tools / gendist @ dd44b2ce

History | View | Annotate | Download (800 Bytes)

1 d8033f22 Martin Mares
#!/bin/sh
2
#
3
#  Generate BIRD Distribution Archive
4
#  (c) 2000 Martin Mares <mj@ucw.cz>
5
#
6
7 2d176ac5 Martin Mares
set -e
8 4386360b Martin Mares
autoconf
9
./configure
10
make distclean
11 d8033f22 Martin Mares
autoconf
12 2d176ac5 Martin Mares
( cd doc ; make docs ; make clean )
13 d8033f22 Martin Mares
VERSION=`sed <sysdep/config.h '/BIRD_VERSION/!d;s/^.*"\(.*\)"$/\1/'`
14
REL=bird-$VERSION
15 2d176ac5 Martin Mares
DREL=bird-doc-$VERSION
16 d8033f22 Martin Mares
echo Building $REL
17
rm -rf dist
18 2d176ac5 Martin Mares
mkdir -p dist/$REL dist/$DREL/doc
19 d8033f22 Martin Mares
cp -a . dist/$REL
20 2d176ac5 Martin Mares
mv dist/$REL/doc/*.ps dist/$DREL/doc
21
rm -f dist/$REL/bird.conf
22 d8033f22 Martin Mares
rm -rf `find dist/$REL -name CVS -o -name tmp` dist/$REL/{dist,misc,rfc}
23 2d176ac5 Martin Mares
( cd dist ; tar czvvf /tmp/$REL.tar.gz $REL )
24
( cd dist ; tar czvvf /tmp/$DREL.tar.gz $DREL )
25 d8033f22 Martin Mares
rm -rf dist
26 dd44b2ce Martin Mares
echo Uploading to Atrey...
27
scp /tmp/$REL.tar.gz /tmp/$DREL.tar.gz atrey:~ftp/pub/bird/
28
echo Uploading to Regina...
29
scp /tmp/$REL.tar.gz /tmp/$DREL.tar.gz regina:~ftp/pub/bird/
30 d8033f22 Martin Mares
echo Done.