need to filter out if/else/endif too

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13534 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
2004-03-16 16:30:00 +00:00
parent e5d57f4517
commit fadbd9dc4a

View File

@@ -60,7 +60,7 @@ make_proto () {
(top=`pwd` (top=`pwd`
cd $1 cd $1
b=`basename $1` b=`basename $1`
perl $top/cf/make-proto.pl -o $2 -p $3 `(sed 's/^include/##include/' Makefile.am; perl $top/cf/make-proto.pl -o $2 -p $3 `(perl -p -e 's/^(include|if|else|endif)\b/##$1/' Makefile.am;
echo 'print-sources:; @if test "$(proto_opts)"; then echo $(proto_opts); else echo -q -P comment; fi; echo '$4 | sort -u ) | make -f - print-sources `) echo 'print-sources:; @if test "$(proto_opts)"; then echo $(proto_opts); else echo -q -P comment; fi; echo '$4 | sort -u ) | make -f - print-sources `)
} }