Clear up license ambiguity in swigwarn.swg.

Also tidies up swigwarn.swg a bit.
This commit is contained in:
William S Fulton 2013-05-13 18:10:59 +01:00
commit 3ddea71f33

View file

@ -432,12 +432,8 @@ maintainer-clean:
$(srcdir)/Lib/swigwarn.swg: $(srcdir)/Source/Include/swigwarn.h
mkdir -p Lib
echo "/* Automatically generated file containing all the swig warning codes. */" > $@
echo "/* Do not modify this file by hand, change 'Source/Include/swigwarn.h' */" >> $@
echo "/* and use the command 'make Lib/swigwarn.swg' instead. */" >> $@
echo >> $@; echo >> $@
awk '/#define WARN/{$$1="%define"; $$2="SWIG"$$2; $$3=sprintf("%d %%enddef", $$3); print $$0; next;}\
/#/{next;} {print $0}' < $? >> $@
echo "/* SWIG warning codes */" > $@
cat $? | grep "^#define WARN\|/\*.*\*/\|^[ \t]*$$" | sed 's/^#define \(WARN.*[0-9]\+\)\(.*\)$$/%define SWIG\1 %enddef\2/' >> $@
#####################################################################
# TARGETS: install & friends