Statistics
| Branch: | Revision:

iof-bird-daemon / tools / gendist @ 2d176ac5

History | View | Annotate | Download (622 Bytes)

1 d8033f22 Martin Mares
#!/bin/sh
2
#
3
#  Generate BIRD Distribution Archive
4
#  (c) 2000 Martin Mares <mj@ucw.cz>
5
#
6
7 2d176ac5 Martin Mares
set -e
8 d8033f22 Martin Mares
[ -f Makefile ] && make distclean
9
autoconf
10 2d176ac5 Martin Mares
( cd doc ; make docs ; make clean )
11 d8033f22 Martin Mares
VERSION=`sed <sysdep/config.h '/BIRD_VERSION/!d;s/^.*"\(.*\)"$/\1/'`
12
REL=bird-$VERSION
13 2d176ac5 Martin Mares
DREL=bird-doc-$VERSION
14 d8033f22 Martin Mares
echo Building $REL
15
rm -rf dist
16 2d176ac5 Martin Mares
mkdir -p dist/$REL dist/$DREL/doc
17 d8033f22 Martin Mares
cp -a . dist/$REL
18 2d176ac5 Martin Mares
mv dist/$REL/doc/*.ps dist/$DREL/doc
19
rm -f dist/$REL/bird.conf
20 d8033f22 Martin Mares
rm -rf `find dist/$REL -name CVS -o -name tmp` dist/$REL/{dist,misc,rfc}
21 2d176ac5 Martin Mares
( cd dist ; tar czvvf /tmp/$REL.tar.gz $REL )
22
( cd dist ; tar czvvf /tmp/$DREL.tar.gz $DREL )
23 d8033f22 Martin Mares
rm -rf dist
24
echo Done.