summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@mit.edu>2003-05-18 09:01:47 +0000
committerKen Raeburn <raeburn@mit.edu>2003-05-18 09:01:47 +0000
commita75f2cc8ec8c296daa52713b599708bc451b7485 (patch)
treec588eb30e1031895c58e75cf1a0f7f695f266a50
parent4dbf3745bb68a87427a4044c846427d816a43bbc (diff)
downloadkrb5-a75f2cc8ec8c296daa52713b599708bc451b7485.tar.gz
krb5-a75f2cc8ec8c296daa52713b599708bc451b7485.tar.xz
krb5-a75f2cc8ec8c296daa52713b599708bc451b7485.zip
* depgen.sed: Put print command on separate lines from substitution commands,
instead of using s///p form. ticket: 1364 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15458 dc483132-0cff-0310-8789-dd5450dbe970
-rw-r--r--src/util/ChangeLog5
-rw-r--r--src/util/depgen.sed18
2 files changed, 20 insertions, 3 deletions
diff --git a/src/util/ChangeLog b/src/util/ChangeLog
index af2e6ae403..3113e1ae0d 100644
--- a/src/util/ChangeLog
+++ b/src/util/ChangeLog
@@ -1,3 +1,8 @@
+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.
diff --git a/src/util/depgen.sed b/src/util/depgen.sed
index 6ce34f7b16..3d31db9545 100644
--- a/src/util/depgen.sed
+++ b/src/util/depgen.sed
@@ -11,6 +11,15 @@
# 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.\
@@ -26,7 +35,8 @@ s|^\([^ ]*\) \([^ ]*\) \([^ ]*\) \([^ ]*\) \([^ ]*\)$|# This file is automatical
\
# First, remove redundant leading "//" and "./" ...\
s;///*;/;g\
-s; \\./; ;g|p
+s; \\./; ;g|
+p
x
h
@@ -40,7 +50,8 @@ s;\1/[^ ]* ;;g\
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.
@@ -65,7 +76,8 @@ s|^\(.*\)$|\
s; \1/; $(srcdir);g\
s; $(srcdir)/\.\./; \1/../;\
\
-# Recognize variants of $(SRCTOP).|p
+# Recognize variants of $(SRCTOP).|
+p
x
# just process first "word"