* depfix.sed: Temporarily add trailing whitespace to make substitutions more
authorKen Raeburn <raeburn@mit.edu>
Sat, 1 Sep 2001 04:08:55 +0000 (04:08 +0000)
committerKen Raeburn <raeburn@mit.edu>
Sat, 1 Sep 2001 04:08:55 +0000 (04:08 +0000)
regular.  Split lines before writing out.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13719 dc483132-0cff-0310-8789-dd5450dbe970

src/util/ChangeLog
src/util/depfix.sed

index 839ca424bb16d53aa34522206971062446cc75ec..754851b01f4b6b4643c926b9930782fcb8001571 100644 (file)
@@ -1,3 +1,8 @@
+2001-09-01  Ken Raeburn  <raeburn@mit.edu>
+
+       * depfix.sed: Temporarily add trailing whitespace to make
+       substitutions more regular.  Split lines before writing out.
+
 2001-06-15  Ken Raeburn  <raeburn@mit.edu>
 
        * getsyms: Fix quoting around find command looking for
index 262b4abbd10100f3cbba58a361018e3f82193364..f5cb27b9009491f395dbfad00906d366ff7ef598 100644 (file)
@@ -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...