Statistics
| Branch: | Revision:

iof-bird-daemon / tools / gendist @ dd44b2ce

History | View | Annotate | Download (800 Bytes)

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

    
7
set -e
8
autoconf
9
./configure
10
make distclean
11
autoconf
12
( cd doc ; make docs ; make clean )
13
VERSION=`sed <sysdep/config.h '/BIRD_VERSION/!d;s/^.*"\(.*\)"$/\1/'`
14
REL=bird-$VERSION
15
DREL=bird-doc-$VERSION
16
echo Building $REL
17
rm -rf dist
18
mkdir -p dist/$REL dist/$DREL/doc
19
cp -a . dist/$REL
20
mv dist/$REL/doc/*.ps dist/$DREL/doc
21
rm -f dist/$REL/bird.conf
22
rm -rf `find dist/$REL -name CVS -o -name tmp` dist/$REL/{dist,misc,rfc}
23
( cd dist ; tar czvvf /tmp/$REL.tar.gz $REL )
24
( cd dist ; tar czvvf /tmp/$DREL.tar.gz $DREL )
25
rm -rf dist
26
echo Uploading to Atrey...
27
scp /tmp/$REL.tar.gz /tmp/$DREL.tar.gz atrey:~ftp/pub/bird/
28
echo Uploading to Regina...
29
scp /tmp/$REL.tar.gz /tmp/$DREL.tar.gz regina:~ftp/pub/bird/
30
echo Done.