This was added in 2005 as part of a big-ish commit. Since then, it hasn't been updated.
This script isn't used by anything else in modular, and no real reason was given for it in the commit (the commit only mentions it being added). Signed-off-by: Jesse Adkins <[email protected]> --- addconfigh.awk | 56 -------------------------------------------------------- 1 files changed, 0 insertions(+), 56 deletions(-) delete mode 100755 addconfigh.awk diff --git a/addconfigh.awk b/addconfigh.awk deleted file mode 100755 index 55c041b..0000000 --- a/addconfigh.awk +++ /dev/null @@ -1,56 +0,0 @@ -#!/usr/bin/awk -f - -# This script adds -# -# #include <config.h> -# -# before the first #include line it finds. - -function do_writeout () -{ - if (output && writeout) - system ("mv " output " " input ); -} - -{ - if (FNR == 1) - { - do_writeout(); - -# beginning of a file - - input = FILENAME; - output = FILENAME "-new"; - n_includes = 0; - writeout = 1; - done = 0; - } -} - -/\#include/ { - if (n_includes == 0 && /\#include <config.h>/) - { - print "skipping " FILENAME - writeout = 0; - - nextfile; - } - - ++n_includes; - if (!done) { - print "#ifdef HAVE_CONFIG_H" > output; - print "#include <config.h>" > output; - print "#endif" > output; - - done = 1; - } -} - -{ - print > output -} - - -END { - do_writeout(); -} -- 1.7.0.4 _______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
