summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2010-06-26 17:36:27 +0300
committerEli Zaretskii <eliz@gnu.org>2010-06-26 17:36:27 +0300
commit394f238630dc4904435c15dad92727a900916b97 (patch)
tree660cb2890faea0ce83c4cfcced3a4c8b7773d27c
parent0b7889fc3322ea2a294aab4257544df06d87ad65 (diff)
downloademacs-394f238630dc4904435c15dad92727a900916b97.tar.gz
Fix the MS-DOS build due to changes in configury.
config.bat: Remove white space around "+" in COPY commands. msods/mainmake.v2 (version): Use emacs_version[] in src/emacs.c instead of lisp/version.el (see 2010-05-15T21:11:37Z!raeburn@raeburn.org). msdos/sed1v2.inp (MKDEPDIR): Edit to empty. Delete lines in rules that invoke $(MKDEPDIR). Fix editing rules that begin with "cd ../lisp". Edit out sh if-then-else-fi constructs that test ${CANNOT_DUMP}. Edit out "|| exit ;\" constructs in emacs${EXEEXT} rule.
-rw-r--r--ChangeLog4
-rw-r--r--config.bat2
-rw-r--r--msdos/ChangeLog11
-rw-r--r--msdos/mainmake.v22
-rw-r--r--msdos/sed1v2.inp28
5 files changed, 34 insertions, 13 deletions
diff --git a/ChangeLog b/ChangeLog
index e8e509c80f3..f4c27ca3b07 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-06-26 Eli Zaretskii <eliz@gnu.org>
+
+ * config.bat: Remove white space around "+" in COPY commands.
+
2010-06-16 Chong Yidong <cyd@stupidchicken.com>
* INSTALL: Update font information (Bug#6389).
diff --git a/config.bat b/config.bat
index a37a7a70085..aac4e108b09 100644
--- a/config.bat
+++ b/config.bat
@@ -191,7 +191,7 @@ if exist dir.h ren dir.h vmsdir.h
rem Create "makefile" from "makefile.in".
rm -f Makefile makefile.tmp
-copy Makefile.in + deps.mk makefile.tmp
+copy Makefile.in+deps.mk makefile.tmp
sed -f ../msdos/sed1v2.inp <makefile.tmp >Makefile
rm -f makefile.tmp
diff --git a/msdos/ChangeLog b/msdos/ChangeLog
index fe5831ab259..71d2acbc928 100644
--- a/msdos/ChangeLog
+++ b/msdos/ChangeLog
@@ -1,3 +1,14 @@
+2010-06-26 Eli Zaretskii <eliz@gnu.org>
+
+ * mainmake.v2 (version): Use emacs_version[] in src/emacs.c
+ instead of lisp/version.el (see 2010-05-15T21:11:37Z!raeburn@raeburn.org).
+
+ * sed1v2.inp (MKDEPDIR): Edit to empty.
+ Delete lines in rules that invoke $(MKDEPDIR).
+ Fix editing rules that begin with "cd ../lisp".
+ Edit out sh if-then-else-fi constructs that test ${CANNOT_DUMP}.
+ Edit out "|| exit ;\" constructs in emacs${EXEEXT} rule.
+
2010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
* sed1v2.inp (UNEXEC_OBJ): Use UNEXEC_OBJ instead of unexec.
diff --git a/msdos/mainmake.v2 b/msdos/mainmake.v2
index 271db707e37..4bb13e367ed 100644
--- a/msdos/mainmake.v2
+++ b/msdos/mainmake.v2
@@ -65,7 +65,7 @@ MAKESHELL=/xyzzy/command
top_srcdir := $(subst \,/,$(shell cd))
# Find out which version of Emacs this is.
-version := ${shell sed -n -e '/(defconst emacs-version/s/^[^"]*\("[^"]*"\).*/\1/p' lisp/version.el}
+version := ${shell sed -n -e '/^const char emacs_version/s/^[^"]*\("[^"]*"\).*/\1/p' src/emacs.c}
# Q: Do we need to bootstrap?
# A: Only if we find admin/admin.el, i.e. we are building out of
diff --git a/msdos/sed1v2.inp b/msdos/sed1v2.inp
index 67d307a5532..8f7c06cfd8c 100644
--- a/msdos/sed1v2.inp
+++ b/msdos/sed1v2.inp
@@ -20,12 +20,6 @@ s/^#.*//
s/^[ \f\t][ \f\t]*$//
s/^ / /
s/\.h\.in/.h-in/
-/^ LC_ALL=C \$(RUN_TEMACS)/i\
- 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]*@/./
@@ -124,7 +118,7 @@ s/\.h\.in/.h-in/
/^UNEXEC_OBJ *=/s/@UNEXEC_OBJ@/unexec.o/
/^CANNOT_DUMP *=/s/@cannot_dump@/no/
/^DEPFLAGS *=/s/@DEPFLAGS@//
-/^MKDEPDIR *=/s/@MKDEPDIR@/:/
+/^MKDEPDIR *=/s/@MKDEPDIR@//
/^version *=/s/@[^@\n]*@//
/^M_FILE *=/s!@[^@\n]*@!m/intel386.h!
/^S_FILE *=/s!@[^@\n]*@!s/msdos.h!
@@ -132,17 +126,29 @@ s/\.h\.in/.h-in/
/^.\${libsrc}make-docfile.*>/s!make-docfile!make-docfile -o ../etc/DOC!
/^.\${libsrc}make-doc/s!>.*$!!
/^[ ]*$/d
+/^ if test -f/,/^ fi$/c\
+ command.com /c if exist .gdbinit rm -f _gdbinit
/^temacs:/s/prefix-args//
/^temacs:/s/stamp-oldxmenu//
+/^ if test "\${CANNOT_DUMP}" =/,/^ else /d
+/^ fi/d
+/^ LC_ALL=C \$(RUN_TEMACS)/i\
+ 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
+s/ || exit 1\; \\$//
+s/ || true\; \\$//
/^RUN_TEMACS *=/s|`/bin/pwd`|.|
+/^ *@\$(MKDEPDIR) *$/d
/^ mv \.\/\.gdbinit/d
-/^ if test -f/c\
+/^ if test -f/,/^ fi$/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/
+/^ -\{0,1\} *ln -/s/ln -f/cp -pf/
/^[ ]touch /s/touch/djecho $@ >/
s/@YMF_PASS_LDFLAGS@/flags/
s/@deps_frag@//
@@ -162,7 +168,7 @@ s/echo.*buildobj.lst/dj&/
stubedit b-emacs.exe minstack=3072k\
djecho bootlisp > bootlisp
/^ -\{0,1\}rm -f/s/\\#/#/
-/^ @\{0,1\}cd ..\/lisp; /s|$|\; cd ../src|
+/^ @\{0,1\}cd ..\/lisp;.*[^\]$/s|$|\; cd ../src|
/^ echo.* buildobj.h/s|echo |djecho |
# arch-tag: c7e3aacb-4162-460e-99f9-4252bca68d2c