From c4cc693de740e1396f853f7c29b12800ee42fa74 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 14 May 1996 02:28:12 +0000 Subject: Mon May 13 19:52:33 1996 Roland McGrath * Makerules (stub-$(subdir)): Put cmds including cd inside (...) with output redirect outside it. --- Makerules | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'Makerules') diff --git a/Makerules b/Makerules index 048eff21b8..f235d172bb 100644 --- a/Makerules +++ b/Makerules @@ -754,12 +754,12 @@ stubs: $(common-objpfx)stub-$(subdir) s = $(sysdep_dir)/stub $(common-objpfx)stub-$(subdir): $(+depfiles) # Use /dev/null since `...` might expand to empty. - s=`cd $s; /bin/pwd`; \ - $(patsubst %,cd %;,$(objdir)) \ - sed -n 's/^stub_warning *(\([^)]*\).*$$/#define __stub_\1/p' \ - `sed -n 's@^.*$s/\([a-z0-9_-]*\.c\).*$$@'"$$s"/'\1@p' \ - $(patsubst $(objpfx)%,%,$^) /dev/null` \ - /dev/null > $(@F)T + (s=`cd $s; /bin/pwd`; \ + $(patsubst %,cd %;,$(objdir)) \ + sed -n 's/^stub_warning *(\([^)]*\).*$$/#define __stub_\1/p' \ + `sed -n 's@^.*$s/\([a-z0-9_-]*\.c\).*$$@'"$$s"/'\1@p' \ + $(patsubst $(objpfx)%,%,$^) /dev/null` \ + /dev/null) > $@T mv -f $@T $@ # Make the distribution tar file. -- cgit v1.2.3