[PATCH modular] Remove addconfigh script.
Jesse Adkins
jesserayadkins at gmail.com
Sun Sep 19 09:49:01 PDT 2010
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 <jesserayadkins at gmail.com>
---
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
More information about the xorg-devel
mailing list