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-06-22 06:11:29 +08:00
|
|
|
scp -C atrey:~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-05-09 06:37:16 +08:00
|
|
|
rm -rf `find dist/$REL -name CVS -o -name tmp` dist/$REL/{dist,misc,rfc}
|
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...
|
|
|
|
scp /tmp/$REL.tar.gz /tmp/$DREL.tar.gz atrey:~ftp/pub/bird/
|
|
|
|
echo Uploading to Regina...
|
|
|
|
scp /tmp/$REL.tar.gz /tmp/$DREL.tar.gz regina:~ftp/pub/bird/
|
2000-05-09 06:37:16 +08:00
|
|
|
echo Done.
|