+2003-05-18 Ken Raeburn <raeburn@mit.edu>
+
+ * depgen.sed: Put print command on separate lines from
+ substitution commands, instead of using s///p form.
+
2003-05-15 Tom Yu <tlyu@mit.edu>
* mkrel: Remote autom4te.cache files.
# s; $(SRCTOP)/lib/krb5/; $(srcdir)/../;g
# ...
+# Notes:
+# Keep "s..." and "p" commands on separate lines. The "s///p" form is
+# supposed to print the result if a substitution is done. When we
+# then alter the pattern space and print other stuff, the IRIX sed
+# seems to omit some of the earlier intended output. I think we're
+# always doing the substitutions anyways, so always printing should be
+# fine.
+
+
# Output some mostly-fixed patterns first
h
s|^\([^ ]*\) \([^ ]*\) \([^ ]*\) \([^ ]*\) \([^ ]*\)$|# This file is automatically generated by depgen.sed, do not edit it.\
\
# First, remove redundant leading "//" and "./" ...\
s;///*;/;g\
-s; \\./; ;g|p
+s; \\./; ;g|
+p
x
h
s;\1/[^ ]*$;;g\
\
# Recognize $(SRCTOP) and make it a variable reference.\
-# (Is this step needed, given the substitutions below?)|p
+# (Is this step needed, given the substitutions below?)|
+p
x
# Drop the last (possibly empty?) word, gcc's prefix. Then save four words.
s; \1/; $(srcdir);g\
s; $(srcdir)/\.\./; \1/../;\
\
-# Recognize variants of $(SRCTOP).|p
+# Recognize variants of $(SRCTOP).|
+p
x
# just process first "word"