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

7
VERSION=`grep 'BIRD_VERSION \"' sysdep/config.h | sed '/BIRD_VERSION/!d;s/^.*"\(.*\)"$/\1/'`
8 9 10
REL=bird-$VERSION
DREL=bird-doc-$VERSION
T=/tmp/bird
11
set -e
12
AC=autoreconf
13
$AC
14
./configure
15
make docs
16 17 18
rm -rf $T/$REL $T/$DREL
mkdir -p $T/$REL $T/$DREL $T/$DREL/doc
mv obj/doc/*.pdf $T/$DREL/doc
19
make distclean
20 21
find . -name "*~" -exec rm -f '{}' '+'

22
$AC
Ondřej Filip's avatar
Ondřej Filip committed
23
rm -rf autom4te*cache
24
echo Building $REL
25
cp -a . $T/$REL
26
echo Generating ChangeLog
27
git log  >$T/$REL/ChangeLog
28
rm -f $T/$REL/bird.conf*
29
rm -rf $T/$REL/.git/
30
rm -rf `find $T/$REL -name CVS -o -name tmp` $T/$REL/{misc,rfc,doc/slides,doc/slt2001,doc/old,doc/*.out}
31 32 33
( cd $T ; tar czvvf $REL.tar.gz $REL )
( cd $T ; tar czvvf $DREL.tar.gz $DREL )
rm -rf $T/$REL $T/$DREL
34 35
echo -n "OK? "
read OK
36
echo Uploading to Atrey...
37
scp $T/$REL.tar.gz $T/$DREL.tar.gz atrey.karlin.mff.cuni.cz:~ftp/pub/bird/
Ondrej Filip's avatar
Ondrej Filip committed
38
echo Uploading to Trubka...
39
scp $T/$REL.tar.gz $T/$DREL.tar.gz bird.network.cz:~ftp/pub/bird/
40
echo Done.