Clear up license ambiguity in swigwarn.swg.
Also tidies up swigwarn.swg a bit.
This commit is contained in:
parent
f09231d282
commit
3ddea71f33
1 changed files with 2 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue