Annotation of embedaddon/bird/tools/gendist, revision 1.1.1.2

1.1       misho       1: #!/bin/sh
                      2: #
                      3: #  Generate BIRD Distribution Archive
                      4: #  (c) 2000--2004 Martin Mares <mj@ucw.cz>
                      5: #
                      6: 
                      7: set -e
1.1.1.2 ! misho       8: AC=autoreconf
1.1       misho       9: $AC
                     10: ./configure
                     11: make distclean
                     12: $AC
                     13: rm -rf autom4te*cache
                     14: ( cd doc ; make docs ; make clean )
                     15: VERSION=`sed <sysdep/config.h '/BIRD_VERSION/!d;s/^.*"\(.*\)"$/\1/'`
                     16: REL=bird-$VERSION
                     17: DREL=bird-doc-$VERSION
                     18: T=/tmp/bird
                     19: echo Building $REL
                     20: rm -rf $T/$REL $T/$DREL
                     21: mkdir -p $T/$REL $T/$DREL $T/$DREL/doc
                     22: cp -a . $T/$REL
                     23: echo Generating ChangeLog
                     24: git log  >$T/$REL/ChangeLog
1.1.1.2 ! misho      25: mv $T/$REL/doc/*.pdf $T/$DREL/doc
1.1       misho      26: rm -f $T/$REL/bird.conf*
                     27: rm -rf $T/$REL/.git/
                     28: rm -rf `find $T/$REL -name CVS -o -name tmp` $T/$REL/{misc,rfc,doc/slides}
                     29: ( cd $T ; tar czvvf $REL.tar.gz $REL )
                     30: ( cd $T ; tar czvvf $DREL.tar.gz $DREL )
                     31: rm -rf $T/$REL $T/$DREL
                     32: echo -n "OK? "
                     33: read OK
                     34: echo Uploading to Atrey...
                     35: scp $T/$REL.tar.gz $T/$DREL.tar.gz atrey.karlin.mff.cuni.cz:~ftp/pub/bird/
                     36: echo Uploading to Trubka...
                     37: scp $T/$REL.tar.gz $T/$DREL.tar.gz bird.network.cz:~ftp/pub/bird/
                     38: echo Done.

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>