From: Ken Raeburn Date: Thu, 6 Sep 2001 10:44:32 +0000 (+0000) Subject: * post.in (depfix2.sed): collapse multiple slashes; more relative pathname processing X-Git-Tag: krb5-1.3-alpha1~1085 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=47fe08b7d2703d6c771c01ce77aeadb15da8c08f;p=krb5.git * post.in (depfix2.sed): collapse multiple slashes; more relative pathname processing git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13733 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/config/ChangeLog b/src/config/ChangeLog index d850e593f..31ea5ce97 100644 --- a/src/config/ChangeLog +++ b/src/config/ChangeLog @@ -2,6 +2,7 @@ * post.in (depfix2.sed): New target, generates a sed script that'll do a better job of identifying possible $(SRCTOP) uses. + Collapse multiple slashes to one. Uses new depgen.sed script. (.depend): Use it. 2001-09-01 Ken Raeburn diff --git a/src/config/post.in b/src/config/post.in index 370162b13..4fc9c056c 100644 --- a/src/config/post.in +++ b/src/config/post.in @@ -19,11 +19,13 @@ check-windows:: # directory-specific parameters. General substitutions independent of local # make variables happen in depfix.sed. depfix2.sed: Makefile $(SRCTOP)/util/depgen.sed + echo '# automatically generated, do not edit' > depfix2.tmp + echo 's;///*;/;g' >> depfix2.tmp echo 's; \./; ;g' >> depfix2.tmp echo 's; $(SRCTOP)/; $$(SRCTOP)/;g' >> depfix2.tmp echo 's; $(srcdir)/; $$(srcdir)/;g' >> depfix2.tmp echo 's; $$(srcdir)/\.\./; $(srcdir)/../;g' >> depfix2.tmp - echo '$(SRCTOP)' | sed -f $(SRCTOP)/util/depgen.sed >> depfix2.tmp + echo '$(SRCTOP)' '$(myfulldir)' | sed -f $(SRCTOP)/util/depgen.sed >> depfix2.tmp echo 's; $(BUILDTOP)/; $$(BUILDTOP)/;g' >> depfix2.tmp mv -f depfix2.tmp depfix2.sed