Revision fa643be1

View differences:

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

  
7 7
set -e
8
autoconf
8
AC=`if [ -x /usr/bin/autoconf2.50 ] ; then echo autoconf2.50 ; else echo autoconf ; fi`
9
$AC
9 10
./configure
10 11
make distclean
11
autoconf
12
$AC
13
rm -rf autom4te.cache
12 14
( cd doc ; make docs ; make clean )
13 15
VERSION=`sed <sysdep/config.h '/BIRD_VERSION/!d;s/^.*"\(.*\)"$/\1/'`
14 16
REL=bird-$VERSION
......
18 20
rm -rf $T/$REL $T/$DREL
19 21
mkdir -p $T/$REL $T/$DREL $T/$DREL/doc
20 22
cp -a . $T/$REL
21
scp -C atrey.karlin.mff.cuni.cz:~mj/BIRD/CVSROOT/ChangeLog $T/$REL
23
echo Generating ChangeLog
24
cvs log | tools/cvslog >$T/$REL/ChangeLog
22 25
mv $T/$REL/doc/*.ps $T/$DREL/doc
23
rm -f $T/$REL/bird.conf
26
rm -f $T/$REL/bird.conf*
24 27
rm -rf `find $T/$REL -name CVS -o -name tmp` $T/$REL/{misc,rfc,doc/slides}
25 28
( cd $T ; tar czvvf $REL.tar.gz $REL )
26 29
( cd $T ; tar czvvf $DREL.tar.gz $DREL )
27 30
rm -rf $T/$REL $T/$DREL
31
echo -n "OK? "
32
read OK
28 33
echo Uploading to Atrey...
29 34
scp $T/$REL.tar.gz $T/$DREL.tar.gz atrey.karlin.mff.cuni.cz:~ftp/pub/bird/
30 35
echo Uploading to Regina...

Also available in: Unified diff