Revision 2d176ac5 tools/gendist

View differences:

tools/gendist
4 4
#  (c) 2000 Martin Mares <mj@ucw.cz>
5 5
#
6 6

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

Also available in: Unified diff