usbmodeswitch: Updated to v.1.2.6 from shibby's branch.
[tomato.git] / release / src / router / rp-l2tp / make-release.sh
blob39bb7fcb922231449210534e5c27bc5d7f88932c
1 #!/bin/sh
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"
10 exit 1
13 # In DFS's tree, libevent is in parent directory. Create symlink
14 # if needed
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"
20 DIR=rp-l2tp-$VERSION
21 PWD=`pwd`
22 test -d $DIR && rm -rf $DIR
23 mkdir $DIR || exit 1
24 for i in $MANIFEST ; do
25 echo "Doing $i..."
26 d=`dirname $i`
27 test -d $DIR/$d || mkdir -p $DIR/$d || exit 1
28 ln -s $PWD/$i $DIR/$d || exit 1
29 done
30 exit 0