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