merge emacs-23
[bpt/emacs.git] / msdos / sed1v2.inp
CommitLineData
515dd711 1# -sed1v2.inp-----------------------------------------------------------
c107c335 2# Configuration script for src/Makefile under DJGPP v2.x
515dd711 3# ----------------------------------------------------------------------
d7fcecc1 4#
62eda0e2 5# Copyright (C) 1996, 1997, 1999, 2000, 2001, 2002, 2003, 2004,
5df4f04c 6# 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
d7fcecc1
EZ
7#
8# This file is part of GNU Emacs.
9#
10# This file is free software; as a special exception, the author gives
11# unlimited permission to copy and/or distribute it, with or without
12# modifications, as long as this notice is preserved.
13#
14# This program is distributed in the hope that it will be useful,
15# but WITHOUT ANY WARRANTY; without even the implied warranty of
16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17#
18# ----------------------------------------------------------------------
515dd711
RS
19s/^#.*//
20s/^[ \f\t][ \f\t]*$//
21s/^ / /
22s/\.h\.in/.h-in/
b0b6ad00 23/^ LC_ALL=C \$(RUN_TEMACS)/i\
9a1d32e7 24 stubedit temacs.exe minstack=1024k
b0b6ad00 25/^ LC_ALL=C.*\$(RUN_TEMACS)/s/LC_ALL=C/set &;/
9a1d32e7
EZ
26/-batch -l loadup/a\
27 stubify emacs\
28 stubedit emacs.exe minstack=2048k
515dd711
RS
29/^MAKE *=/s/^/# /
30/^SHELL *=/s/^/# /
31/^srcdir *=/s/@[^@\n]*@/./
32/^VPATH *=/s/@[^@\n]*@/./
33/^CC *=/s/@[^@\n]*@/gcc/
34/^CPP *=/s/@[^@\n]*@/gcc -e/
5066454b 35/^CFLAGS *=/s/@[^@\n]*@/-O2 -gcoff/
9a1d32e7 36/^ALL_CFLAGS *=/s/@[^@\n]*@//g
f94f6c02
RS
37/^CPPFLAGS *=/s/@[^@\n]*@//
38/^LDFLAGS *=/s/@[^@\n]*@//
dd4e2b00 39/^LIBS *=/s/@[^@\n]*@//
9a1d32e7
EZ
40/^LIBES *=/,/^ *$/ {
41 s/@[^@\n]*@//g
42}
1c00835f
EZ
43/^LIBOBJS *=/s/@[^@\n]*@/getloadavg.o/
44/^GETLOADAVG_LIBS *=/s/@[^@\n]*@//
c107c335 45/^LIBSOUND *=/s/@LIBSOUND@//
e8eaafa2 46/^CFLAGS_SOUND *=/s/@CFLAGS_SOUND@//
478e48df
EZ
47/^RSVG_LIBS *=/s/@RSVG_LIBS@//
48/^RSVG_CFLAGS *=/s/@RSVG_CFLAGS@//
e2a1f100 49/^OTHER_FILES *=/s/@OTHER_FILES@//
9a1d32e7
EZ
50/^EXEEXT *=/s/@EXEEXT@/.exe/
51/^version *=/s/@[^@\n]*@//
515dd711
RS
52/^LN_S *=/s/@[^@\n]*@/ln -s/
53/^M_FILE *=/s!@[^@\n]*@!m/intel386.h!
54/^S_FILE *=/s!@[^@\n]*@!s/msdos.h!
55/^@SET_MAKE@$/s/@SET_MAKE@//
56/^.\${libsrc}make-docfile.*>/s!make-docfile!make-docfile -o ../etc/DOC!
57/^.\${libsrc}make-doc/s!>.*$!!
58/^[\f ]*$/d
59/^temacs:/s/prefix-args//
ad23b7e1 60/^temacs:/s/stamp-oldxmenu//
9a1d32e7 61/^RUN_TEMACS *=/s|`/bin/pwd`|.|
b1039ed6
EZ
62/^ mv \.\/\.gdbinit/d
63/^ if test -f/c\
64 command.com /c if exist .gdbinit rm -f _gdbinit
65/^ else mv \.\/\.gdbinit/d
515dd711 66/^ #/d
be52dc90 67/^ cd.*make-docfile/s!$!; cd ${dot}${dot}/src!
9a1d32e7
EZ
68/^ @: /d
69/^ -\{0,1\}ln -/s/ln -f/cp -pf/
70/^[ ]touch /s/touch/djecho $@ >/
8f331aa5
EZ
71s/bootstrap-emacs/b-emacs/
72s/bootstrap-temacs/b-temacs/
73s/bootstrap-doc/b-doc/
74/rm -f bootstrap-emacs/s/b-emacs/b-emacs b-emacs.exe/
ba68f95a 75s/echo.*buildobj.lst/dj&/
164fd5f8
EZ
76/ --load loadup bootstrap/i\
77 stubedit temacs.exe minstack=1024k
78/ --load loadup bootstrap/a\
79 stubify emacs
8f331aa5 80/^ mv -f emacs/a\
164fd5f8
EZ
81 stubedit b-emacs.exe minstack=3072k\
82 djecho bootlisp > bootlisp
9a1d32e7
EZ
83/^ -\{0,1\}rm -f/s/\\#/#/
84/^ @\{0,1\}cd ..\/lisp; /s|$|\; cd ../src|
a6e656a4 85/^ echo.* buildobj.h/s|echo |djecho |
ab5796a9
MB
86
87# arch-tag: c7e3aacb-4162-460e-99f9-4252bca68d2c