# Makefile for ipif/udptunnel stuff
-# Copyright (C) 1999-2000 Ian Jackson
+# Copyright (C) 1999-2000,2003 Ian Jackson
+# This file is part of ipif, part of userv-utils
#
# This is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
cp *.example $(etcvpn)/.
udptunnel-reconf: udptunnel-reconf.pl Makefile
- perl -pe ' \
- print "\
-\$$shareuserv= \"$(shareuserv)\";\n\
-\$$etcvpn= \"$(etcvpn)\";\n\
-\$$varlibvpn= \"$(varlibvpn)\";\n" if m#^\# \@\@\@\-#; \
- $$_="" if m/^\# \@\@\@\-/ .. m/^\# \-\@\@\@/; \
- ' \
+ set -x; perl -p \
+-e ' print ' \
+-e ' "\$$shareuserv= \"$(shareuserv)\";\n".' \
+-e ' "\$$etcvpn= \"$(etcvpn)\";\n".' \
+-e ' "\$$varlibvpn= \"$(varlibvpn)\";\n" if m#^\# \@\@\@\-#; ' \
+-e ' $$_="" if m/^\# \@\@\@\-/ .. m/^\# \-\@\@\@/; ' \
<$< >$@.new
chmod +x $@.new
mv -f $@.new $@