Revision 0e41e34a tools/gendist

View differences:

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

  
7 7
set -e
......
13 13
VERSION=`sed <sysdep/config.h '/BIRD_VERSION/!d;s/^.*"\(.*\)"$/\1/'`
14 14
REL=bird-$VERSION
15 15
DREL=bird-doc-$VERSION
16
T=/tmp/bird
16 17
echo Building $REL
17
rm -rf dist
18
mkdir -p dist/$REL dist/$DREL/doc
19
cp -a . dist/$REL
20
scp -C atrey.karlin.mff.cuni.cz:~mj/BIRD/CVSROOT/ChangeLog dist/$REL
21
mv dist/$REL/doc/*.ps dist/$DREL/doc
22
rm -f dist/$REL/bird.conf
23
rm -rf `find dist/$REL -name CVS -o -name tmp` dist/$REL/{dist,misc,rfc,doc/slides}
24
( cd dist ; tar czvvf /tmp/$REL.tar.gz $REL )
25
( cd dist ; tar czvvf /tmp/$DREL.tar.gz $DREL )
26
rm -rf dist
18
rm -rf $T/$REL $T/$DREL
19
mkdir -p $T/$REL $T/$DREL $T/$DREL/doc
20
cp -a . $T/$REL
21
scp -C atrey.karlin.mff.cuni.cz:~mj/BIRD/CVSROOT/ChangeLog $T/$REL
22
mv $T/$REL/doc/*.ps $T/$DREL/doc
23
rm -f $T/$REL/bird.conf
24
rm -rf `find $T/$REL -name CVS -o -name tmp` $T/$REL/{misc,rfc,doc/slides}
25
( cd $T ; tar czvvf $REL.tar.gz $REL )
26
( cd $T ; tar czvvf $DREL.tar.gz $DREL )
27
rm -rf $T/$REL $T/$DREL
27 28
echo Uploading to Atrey...
28 29
scp /tmp/$REL.tar.gz /tmp/$DREL.tar.gz atrey.karlin.mff.cuni.cz:~ftp/pub/bird/
29 30
echo Uploading to Regina...

Also available in: Unified diff