projects
/
krb5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca05cac
)
Sed script which postprocesses the output from cc -M for "make depend"
author
Theodore Tso
<tytso@mit.edu>
Tue, 18 Apr 1995 21:52:39 +0000
(21:52 +0000)
committer
Theodore 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]
patch
|
blob
diff --git a/src/util/depfix.sed
b/src/util/depfix.sed
new file mode 100644
(file)
index 0000000..
8813d02
--- /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\
+