Statistics
| Branch: | Revision:

iof-bird-daemon / tools / gendist @ d8033f22

History | View | Annotate | Download (426 Bytes)

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

    
7
[ -f Makefile ] && make distclean
8
autoconf
9
VERSION=`sed <sysdep/config.h '/BIRD_VERSION/!d;s/^.*"\(.*\)"$/\1/'`
10
REL=bird-$VERSION
11
echo Building $REL
12
rm -rf dist
13
mkdir -p dist/$REL
14
cp -a . dist/$REL
15
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
17
rm -rf dist
18
echo Done.