Statistics
| Branch: | Revision:

iof-bird-daemon / tools / gendist @ c153ee91

History | View | Annotate | Download (912 Bytes)

1
#!/bin/sh
2
#
3
#  Generate BIRD Distribution Archive
4
#  (c) 2000--2003 Martin Mares <mj@ucw.cz>
5
#
6

    
7
set -e
8
autoconf
9
./configure
10
make distclean
11
autoconf
12
( cd doc ; make docs ; make clean )
13
VERSION=`sed <sysdep/config.h '/BIRD_VERSION/!d;s/^.*"\(.*\)"$/\1/'`
14
REL=bird-$VERSION
15
DREL=bird-doc-$VERSION
16
T=/tmp/bird
17
echo Building $REL
18
rm -rf $T/$REL $T/$DREL
19
mkdir -p $T/$REL $T/$DREL $T/$DREL/doc
20
cp -a . $T/$REL
21
scp -C atrey.karlin.mff.cuni.cz:~mj/BIRD/CVSROOT/ChangeLog $T/$REL
22
mv $T/$REL/doc/*.ps $T/$DREL/doc
23
rm -f $T/$REL/bird.conf
24
rm -rf `find $T/$REL -name CVS -o -name tmp` $T/$REL/{misc,rfc,doc/slides}
25
( cd $T ; tar czvvf $REL.tar.gz $REL )
26
( cd $T ; tar czvvf $DREL.tar.gz $DREL )
27
rm -rf $T/$REL $T/$DREL
28
echo Uploading to Atrey...
29
scp $T/$REL.tar.gz $T/$DREL.tar.gz atrey.karlin.mff.cuni.cz:~ftp/pub/bird/
30
echo Uploading to Regina...
31
scp $T/$REL.tar.gz $T/$DREL.tar.gz regina.gin.cz:~ftp/pub/bird/
32
echo Done.