Sed script which postprocesses the output from cc -M for "make depend"
authorTheodore Tso <tytso@mit.edu>
Tue, 18 Apr 1995 21:52:39 +0000 (21:52 +0000)
committerTheodore Tso <tytso@mit.edu>
Tue, 18 Apr 1995 21:52:39 +0000 (21:52 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5369 dc483132-0cff-0310-8789-dd5450dbe970

src/util/depfix.sed [new file with mode: 0644]

diff --git a/src/util/depfix.sed b/src/util/depfix.sed
new file mode 100644 (file)
index 0000000..8813d02
--- /dev/null
@@ -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\
+