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-05-08 22:37:16 +00:00
|
|
|
[ -f Makefile ] && make distclean
|
|
|
|
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-09 06:45:48 +00:00
|
|
|
mv dist/$REL/doc/*.ps dist/$DREL/doc
|
|
|
|
rm -f dist/$REL/bird.conf
|
2000-05-08 22:37:16 +00:00
|
|
|
rm -rf `find dist/$REL -name CVS -o -name tmp` dist/$REL/{dist,misc,rfc}
|
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
|
|
|
|
echo Done.
|