From: Michael Beck Date: Thu, 2 Dec 2004 16:04:30 +0000 (+0000) Subject: needed utilities for configure X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=0692cbad79c875bfe1316e94394db88c0181299f;p=libfirm needed utilities for configure [r4540] --- diff --git a/filter.awk b/filter.awk new file mode 100644 index 000000000..fdef9f052 --- /dev/null +++ b/filter.awk @@ -0,0 +1,9 @@ +BEGIN { output = 0 + print "#ifndef _FIRM_CONFIG_H" + print "#define _FIRM_CONFIG_H" + print "/* This file was automtically generated from libFirm's configure */" + } +/snap,[ ]*snap/ { output = 0; NEXT } + { if (output) print } +/snip,[ ]*snip/ { output = 1 } +END { print "#endif /* _FIRM_CONFIG_H */\n" } diff --git a/filter.sed b/filter.sed new file mode 100644 index 000000000..92332fc3a --- /dev/null +++ b/filter.sed @@ -0,0 +1,4 @@ +s/#undef *\([A-Za-z][A-Za-z_]*\)/#undef \1/ +s/#define *\([A-Za-z][A-Za-z_]*\)\(.*\)/#ifndef \1 \ +#define \1 \2 \ +#endif/