Statistics
| Branch: | Revision:

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

History | View | Annotate | Download (622 Bytes)

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

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