diff msdos/sed1v2.inp @ 97669:35c9ec59c853

(version): Define to empty. (ALL_CFLAGS, LIBES): Edit out @FOO@ stuff. (EXEEXT): Define to .exe. Edit "ln -f" into "cp -pf". Edit "touch" into "djecho $@ >", to avoid requiring touch.exe. (b-emacs${EXEEXT}): Don't remove emacs.exe and temacs.exe. Edit "`/bin/pwd`/" into "./". Stubify emacs after it is dumped, to produce emacs.exe. Stubedit temacs.exe to 1024K of stack, emacs.exe to 2048K, and b-emacs.exe to 3072K.
author Eli Zaretskii <eliz@gnu.org>
date Sat, 23 Aug 2008 17:04:11 +0000
parents 107ccd98fa12
children 666b833738d0
line wrap: on
line diff
--- a/msdos/sed1v2.inp	Sat Aug 23 17:02:59 2008 +0000
+++ b/msdos/sed1v2.inp	Sat Aug 23 17:04:11 2008 +0000
@@ -21,8 +21,11 @@
 s/^ /	/
 s/\.h\.in/.h-in/
 /^	LC_ALL=C \$(RUN_TEMACS)/i\
-	stubedit temacs.exe minstack=100k
+	stubedit temacs.exe minstack=1024k
 /^	LC_ALL=C.*\$(RUN_TEMACS)/s/LC_ALL=C/set &;/
+/-batch -l loadup/a\
+	stubify emacs\
+	stubedit emacs.exe minstack=2048k
 /^MAKE *=/s/^/# /
 /^SHELL *=/s/^/# /
 /^srcdir *=/s/@[^@\n]*@/./
@@ -30,16 +33,21 @@
 /^CC *=/s/@[^@\n]*@/gcc/
 /^CPP *=/s/@[^@\n]*@/gcc -e/
 /^CFLAGS *=/s/@[^@\n]*@/-O2 -gcoff/
+/^ALL_CFLAGS *=/s/@[^@\n]*@//g
 /^CPPFLAGS *=/s/@[^@\n]*@//
 /^LDFLAGS *=/s/@[^@\n]*@//
 /^LIBS *=/s/@[^@\n]*@//
+/^LIBES *=/,/^ *$/ {
+  s/@[^@\n]*@//g
+}
 /^LIBOBJS *=/s/@[^@\n]*@/getloadavg.o/
 /^GETLOADAVG_LIBS *=/s/@[^@\n]*@//
 /^LIBSOUND *=/s/@LIBSOUND@//
 /^CFLAGS_SOUND *=/s/@CFLAGS_SOUND@//
 /^RSVG_LIBS *=/s/@RSVG_LIBS@//
 /^RSVG_CFLAGS *=/s/@RSVG_CFLAGS@//
-/^EXEEXT *=/s/@EXEEXT@//
+/^EXEEXT *=/s/@EXEEXT@/.exe/
+/^version *=/s/@[^@\n]*@//
 /^LN_S *=/s/@[^@\n]*@/ln -s/
 /^M_FILE *=/s!@[^@\n]*@!m/intel386.h!
 /^S_FILE *=/s!@[^@\n]*@!s/msdos.h!
@@ -49,23 +57,24 @@
 /^[ 	]*$/d
 /^temacs:/s/prefix-args//
 /^temacs:/s/stamp-oldxmenu//
+/^RUN_TEMACS *=/s|`/bin/pwd`|.|
 /^	mv \.\/\.gdbinit/d
 /^	if test -f/c\
 	command.com /c if exist .gdbinit rm -f _gdbinit
 /^	else mv \.\/\.gdbinit/d
 /^	#/d
 /^	cd.*make-docfile/s!$!; cd ${dot}${dot}/src!
+/^	@: /d
+/^	-\{0,1\}ln -/s/ln -f/cp -pf/
+/^[ 	]touch /s/touch/djecho $@ >/
 s/bootstrap-emacs/b-emacs/
 s/bootstrap-temacs/b-temacs/
 s/bootstrap-doc/b-doc/
 /rm -f bootstrap-emacs/s/b-emacs/b-emacs b-emacs.exe/
-/^	els=/c\
-	${libsrc}make-docfile -o ${etc}DOC -d ${srcdir} ${SOME_MACHINE_LISP:.elc=.el} ${shortlisp:.elc=.el} ${SOME_MACHINE_OBJECTS} ${obj}
 s/echo.*buildobj.lst/dj&/
 /^	mv -f emacs/a\
-	stubify b-emacs\
-	stubedit b-emacs.exe minstack=1024k\
-	rm -f emacs.exe temacs.exe emacs
-/^	rm -f/s/\\#/#/
+	stubedit b-emacs.exe minstack=3072k
+/^	-\{0,1\}rm -f/s/\\#/#/
+/^	@\{0,1\}cd ..\/lisp; /s|$|\; cd ../src|
 
 # arch-tag: c7e3aacb-4162-460e-99f9-4252bca68d2c