summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/util/depfix.sed32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/util/depfix.sed b/src/util/depfix.sed
new file mode 100644
index 000000000..8813d022e
--- /dev/null
+++ b/src/util/depfix.sed
@@ -0,0 +1,32 @@
+#
+# Insert the header.....
+#
+1i\
+# +++ Dependency line eater +++\
+# \
+# Makefile dependencies follow. This must be the last section in\
+# the Makefile.in file\
+#
+
+#
+# Remove line continuations....
+#
+:FIRST
+y/ / /
+s/^ *//
+/\\$/{
+N
+y/ / /
+s/\\\n */ /
+bFIRST
+}
+s/ */ /g
+
+s;/usr/include/[^ ]* ;;g
+s;/usr/lib/[^ ]* ;;g
+
+#
+# Now insert a trailing newline...
+#
+$a\
+