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