2000-05-09 06:37:16 +08:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# Generate BIRD Distribution Archive
|
|
|
|
# (c) 2000 Martin Mares <mj@ucw.cz>
|
|
|
|
#
|
|
|
|
|
2000-06-09 14:45:48 +08:00
|
|
|
set -e
|
2000-06-09 14:46:58 +08:00
|
|
|
autoconf
|
|
|
|
./configure
|
|
|
|
make distclean
|
2000-05-09 06:37:16 +08:00
|
|
|
autoconf
|
2000-06-09 14:45:48 +08:00
|
|
|
( cd doc ; make docs ; make clean )
|
2000-05-09 06:37:16 +08:00
|
|
|
VERSION=`sed <sysdep/config.h '/BIRD_VERSION/!d;s/^.*"\(.*\)"$/\1/'`
|
|
|
|
REL=bird-$VERSION
|
2000-06-09 14:45:48 +08:00
|
|
|
DREL=bird-doc-$VERSION
|
2000-05-09 06:37:16 +08:00
|
|
|
echo Building $REL
|
|
|
|
rm -rf dist
|
2000-06-09 14:45:48 +08:00
|
|
|
mkdir -p dist/$REL dist/$DREL/doc
|
2000-05-09 06:37:16 +08:00
|
|
|
cp -a . dist/$REL
|
2000-09-04 00:21:14 +08:00
|
|
|
scp -C atrey.karlin.mff.cuni.cz:~mj/BIRD/CVSROOT/ChangeLog dist/$REL
|
2000-06-09 14:45:48 +08:00
|
|
|
mv dist/$REL/doc/*.ps dist/$DREL/doc
|
|
|
|
rm -f dist/$REL/bird.conf
|
2000-06-27 04:02:30 +08:00
|
|
|
rm -rf `find dist/$REL -name CVS -o -name tmp` dist/$REL/{dist,misc,rfc,doc/slides}
|
2000-06-09 14:45:48 +08:00
|
|
|
( cd dist ; tar czvvf /tmp/$REL.tar.gz $REL )
|
|
|
|
( cd dist ; tar czvvf /tmp/$DREL.tar.gz $DREL )
|
2000-05-09 06:37:16 +08:00
|
|
|
rm -rf dist
|
2000-06-09 15:52:57 +08:00
|
|
|
echo Uploading to Atrey...
|
2000-09-03 14:54:35 +08:00
|
|
|
scp /tmp/$REL.tar.gz /tmp/$DREL.tar.gz atrey.karlin.mff.cuni.cz:~ftp/pub/bird/
|
2000-06-09 15:52:57 +08:00
|
|
|
echo Uploading to Regina...
|
2000-09-03 14:54:35 +08:00
|
|
|
scp /tmp/$REL.tar.gz /tmp/$DREL.tar.gz regina.gin.cz:~ftp/pub/bird/
|
2000-05-09 06:37:16 +08:00
|
|
|
echo Done.
|