3 # Tar up a releasable archive
4 # $Id: make-release.sh,v 1.1.48.1 2005/08/08 12:05:25 honor Exp $
6 VERSION
=`grep '^VERSION=' Makefile.in | sed -e 's/VERSION=//'`
8 if test "$VERSION" = "" ; then
9 echo "Doh! Could not figure out version from Makefile.in"
13 # In DFS's tree, libevent is in parent directory. Create symlink
16 test -d libevent ||
ln -s ..
/libevent . ||
exit 1
18 MANIFEST
="README Makefile.in install-sh auth.c configure configure.in debug.c dgram.c l2tp.conf l2tp.h main.c make-release.sh md5.c md5.h network.c options.c peer.c session.c tunnel.c utils.c handlers/Makefile.in handlers/cmd-control.c handlers/cmd.c handlers/dstring.c handlers/dstring.h handlers/pty.c handlers/sync-pppd.c man/l2tpd.8 man/l2tp.conf.5 libevent/Makefile.in libevent/event.c libevent/event.h libevent/event_sig.c libevent/event_tcp.c libevent/event_tcp.h libevent/eventpriv.h libevent/hash.c libevent/hash.h libevent/Doc/flow.fig libevent/Doc/libevent.tex libevent/Doc/style.tex libevent/Doc/libevent.pdf"
22 test -d $DIR && rm -rf $DIR
24 for i
in $MANIFEST ; do
27 test -d $DIR/$d || mkdir
-p $DIR/$d ||
exit 1
28 ln -s $PWD/$i $DIR/$d ||
exit 1