From: Ken Raeburn Date: Sat, 1 Sep 2001 04:08:55 +0000 (+0000) Subject: * depfix.sed: Temporarily add trailing whitespace to make substitutions more X-Git-Tag: krb5-1.3-alpha1~1099 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=33a4023fdd30c618473b3341d0878c52f60fb90f;p=krb5.git * depfix.sed: Temporarily add trailing whitespace to make substitutions more regular. Split lines before writing out. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13719 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/util/ChangeLog b/src/util/ChangeLog index 839ca424b..754851b01 100644 --- a/src/util/ChangeLog +++ b/src/util/ChangeLog @@ -1,3 +1,8 @@ +2001-09-01 Ken Raeburn + + * depfix.sed: Temporarily add trailing whitespace to make + substitutions more regular. Split lines before writing out. + 2001-06-15 Ken Raeburn * getsyms: Fix quoting around find command looking for diff --git a/src/util/depfix.sed b/src/util/depfix.sed index 262b4abbd..f5cb27b90 100644 --- a/src/util/depfix.sed +++ b/src/util/depfix.sed @@ -20,11 +20,20 @@ y/ / / s/\\\n */ / bFIRST } +# for simplicity, always have a trailing space +s/$/ / s/ */ /g s;/usr/include/[^ ]* ;;g s;/usr/lib/[^ ]* ;;g s;/mit/cygnus[^ ]* ;;g +# now delete trailing whitespace +s; *$;;g + +# Split lines if they're too long. +s/\(.\{50\}[^ ]*\) /\1 \\\ + /g + # # Now insert a trailing newline...