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

7
set -e
8
AC=autoreconf
9
$AC
10 11
./configure
make distclean
12
$AC
Ondřej Filip's avatar
Ondřej Filip committed
13
rm -rf autom4te*cache
14
( cd doc ; make docs ; make clean )
15 16
VERSION=`sed <sysdep/config.h '/BIRD_VERSION/!d;s/^.*"\(.*\)"$/\1/'`
REL=bird-$VERSION
17
DREL=bird-doc-$VERSION
18
T=/tmp/bird
19
echo Building $REL
20 21 22
rm -rf $T/$REL $T/$DREL
mkdir -p $T/$REL $T/$DREL $T/$DREL/doc
cp -a . $T/$REL
23
echo Generating ChangeLog
24
git log  >$T/$REL/ChangeLog
25
mv $T/$REL/doc/*.pdf $T/$DREL/doc
26
rm -f $T/$REL/bird.conf*
27
rm -rf $T/$REL/.git/
28 29 30 31
rm -rf `find $T/$REL -name CVS -o -name tmp` $T/$REL/{misc,rfc,doc/slides}
( cd $T ; tar czvvf $REL.tar.gz $REL )
( cd $T ; tar czvvf $DREL.tar.gz $DREL )
rm -rf $T/$REL $T/$DREL
32 33
echo -n "OK? "
read OK
34
echo Uploading to Atrey...
35
scp $T/$REL.tar.gz $T/$DREL.tar.gz atrey.karlin.mff.cuni.cz:~ftp/pub/bird/
Ondrej Filip's avatar
Ondrej Filip committed
36
echo Uploading to Trubka...
37
scp $T/$REL.tar.gz $T/$DREL.tar.gz bird.network.cz:~ftp/pub/bird/
38
echo Done.