gendist 622 Bytes
Newer Older
1
2
3
4
5
6
#!/bin/sh
#
#  Generate BIRD Distribution Archive
#  (c) 2000 Martin Mares <mj@ucw.cz>
#

7
set -e
8
9
[ -f Makefile ] && make distclean
autoconf
10
( cd doc ; make docs ; make clean )
11
12
VERSION=`sed <sysdep/config.h '/BIRD_VERSION/!d;s/^.*"\(.*\)"$/\1/'`
REL=bird-$VERSION
13
DREL=bird-doc-$VERSION
14
15
echo Building $REL
rm -rf dist
16
mkdir -p dist/$REL dist/$DREL/doc
17
cp -a . dist/$REL
18
19
mv dist/$REL/doc/*.ps dist/$DREL/doc
rm -f dist/$REL/bird.conf
20
rm -rf `find dist/$REL -name CVS -o -name tmp` dist/$REL/{dist,misc,rfc}
21
22
( cd dist ; tar czvvf /tmp/$REL.tar.gz $REL )
( cd dist ; tar czvvf /tmp/$DREL.tar.gz $DREL )
23
24
rm -rf dist
echo Done.