From: Theodore Tso Date: Tue, 18 Apr 1995 21:52:39 +0000 (+0000) Subject: Sed script which postprocesses the output from cc -M for "make depend" X-Git-Tag: krb5-1.0-beta5~367 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8c6f324ee1b38181db0cbcef1b6ea9422bc24ff6;p=krb5.git Sed script which postprocesses the output from cc -M for "make depend" git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5369 dc483132-0cff-0310-8789-dd5450dbe970 --- 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\ +