summaryrefslogtreecommitdiffstats
path: root/src/util/depfix.sed
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@mit.edu>2001-09-06 09:40:37 +0000
committerKen Raeburn <raeburn@mit.edu>2001-09-06 09:40:37 +0000
commit1f67efa4a5a2c9594e193496d5e3c4ca2e3a3da1 (patch)
tree976b2c2c9db0dec12dbe47686a6199164fbbd909 /src/util/depfix.sed
parentae7feae8f270dd27436d1dd1f8a9f47d00fb0b7f (diff)
downloadkrb5-1f67efa4a5a2c9594e193496d5e3c4ca2e3a3da1.tar.gz
krb5-1f67efa4a5a2c9594e193496d5e3c4ca2e3a3da1.tar.xz
krb5-1f67efa4a5a2c9594e193496d5e3c4ca2e3a3da1.zip
* depgen.sed: New file.
* depfix.sed: Remove /foo/../ sequences, looping til no more. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13730 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/util/depfix.sed')
-rw-r--r--src/util/depfix.sed8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/util/depfix.sed b/src/util/depfix.sed
index d90033df74..d8fc7357c2 100644
--- a/src/util/depfix.sed
+++ b/src/util/depfix.sed
@@ -28,6 +28,14 @@ s/ */ /g
s;/usr/include/[^ ]* ;;g
s;/usr/lib/[^ ]* ;;g
s;/mit/cygnus[^ ]* ;;g
+
+# remove foo/../ sequences
+:dotdot
+/\/[a-z][a-z0-9_.\-]*\/\.\.\// {
+s;/[a-z][a-z0-9_.\-]*/\.\./;/;g
+bdotdot
+}
+
# rely on VPATH for $(srcdir) files
s;\$(srcdir)/\([^ /]* \);\1;g
# now delete trailing whitespace