changeset 30535:442861d7c78a

(src): Make the rule faster by using a single djecho command instead of multiple redir invocations. (install): Speed up by using a command.com's for loop.
author Eli Zaretskii <eliz@gnu.org>
date Mon, 31 Jul 2000 10:09:44 +0000
parents cddd0f1a86b1
children 6170ec782cb2
files msdos/mainmake.v2
diffstat 1 files changed, 10 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/msdos/mainmake.v2	Mon Jul 31 10:07:46 2000 +0000
+++ b/msdos/mainmake.v2	Mon Jul 31 10:09:44 2000 +0000
@@ -58,14 +58,14 @@
 src: FRC
 	cd src
 	$(MAKE) top_srcdir=${top_srcdir}
-	redir -o gdb.sed echo '/-geometry/s,^.*,set environment HOME $(top_srcdir),'
-	redir -oa gdb.sed echo '/environment *TERM/s/^.*/set environment TERM internal/'
-	redir -oa gdb.sed echo '/x_error_quitter/s/^.*/set environment NAME root/'
-	redir -o gdb.tmp sed -f gdb.sed _gdbinit
-	redir -oa gdb.tmp echo 'set environment USER root'
-	redir -oa gdb.tmp echo 'set environment EMACSPATH $(top_srcdir)/bin'
-	redir -oa gdb.tmp echo 'set environment SHELL $(subst \,/,$(COMSPEC))'
-	redir -oa gdb.tmp echo 'set environment PATH $(subst \,/,$(PATH))'
+	djecho -s '/-geometry/s,^.*,set environment HOME $(top_srcdir),' \
+	          '/environment *TERM/s/^.*/set environment TERM internal/' \
+	          '/x_error_quitter/s/^.*/set environment NAME root/' >gdb.sed
+	sed -f gdb.sed _gdbinit >gdb.tmp
+	djecho -a -s 'set environment USER root' \
+	             'set environment EMACSPATH $(top_srcdir)/bin' \
+	             'set environment SHELL $(subst \,/,$(COMSPEC))' \
+	             'set environment PATH $(subst \,/,$(PATH))' >>gdb.tmp 
 	update gdb.tmp gdb.ini
 	rm -f gdb.tmp gdb.sed
 	cd ..
@@ -79,11 +79,8 @@
 install: all
 	if not exist bin\nul md bin
 	cd lib-src
-	if exist hexl.exe mv -f hexl.exe ../bin
-	if exist etags.exe mv -f etags.exe ../bin
-	if exist ctags.exe mv -f ctags.exe ../bin
-	if exist b2m.exe mv -f b2m.exe ../bin
-	if exist ebrowse.exe mv -f ebrowse.exe ../bin
+	command.com /c >/dev/null for %p in (hexl etags ctags b2m ebrowse) do\
+	   if exist %p.exe mv -f %p.exe ../bin
 	if exist fns.el update fns.el ../bin/fns.el
 	cd ..
 	cd src