(set-face-stipple): New function.
[bpt/emacs.git] / config.bat
CommitLineData
3382cd59
RS
1@echo off\r
2rem ----------------------------------------------------------------------\r
3rem Configuration script for MSDOS\r
331fdf1e
RS
4rem Copyright (C) 1994 Free Software Foundation, Inc.\r
5\r
3382cd59
RS
6rem This file is part of GNU Emacs.\r
7\r
8rem GNU Emacs is free software; you can redistribute it and/or modify\r
9rem it under the terms of the GNU General Public License as published by\r
10rem the Free Software Foundation; either version 2, or (at your option)\r
11rem any later version.\r
12\r
13rem GNU Emacs is distributed in the hope that it will be useful,\r
14rem but WITHOUT ANY WARRANTY; without even the implied warranty of\r
15rem MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r
16rem GNU General Public License for more details.\r
17\r
18rem You should have received a copy of the GNU General Public License\r
19rem along with GNU Emacs; see the file COPYING. If not, write to\r
20rem the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.\r
21rem ----------------------------------------------------------------------\r
22rem YOU'LL NEED THE FOLLOWING UTILITIES TO MAKE EMACS:\r
23rem\r
331fdf1e
RS
24rem + msdos version 3 or better.\r
25rem + djgpp version 1,11 maint 4 or better.\r
26rem + make utility that allows breaking of the 128 chars limit on\r
27rem command lines. ndmake (as of version 4.5) won't work due to a\r
28rem line length limit.\r
3382cd59
RS
29rem + rm, mv, chmod (From GNU file utilities).\r
30rem + sed.\r
331fdf1e 31rem\r
2d49d361
RS
32rem You must install in directory c:/emacs or change this script, the\r
33rem files msdos/sed*.inp, and lisp/dos-fns.el. (The latter must be\r
34rem recompiled.)\r
3382cd59
RS
35rem ----------------------------------------------------------------------\r
36if not "%2" == "" goto usage\r
37if "%1" == "msdos" goto msdos\r
331fdf1e 38if "%1" == "msdos-X11" goto msdos11\r
3382cd59
RS
39:usage\r
40echo Usage: config msdos\r
331fdf1e 41rem echo or config msdos-X11 -- don't even think about it\r
3382cd59
RS
42echo [Read the script before you run it; also check that you have all the\r
43echo necessary utilities.]\r
44goto end\r
45rem ----------------------------------------------------------------------\r
331fdf1e
RS
46:msdos11\r
47set X11=y\r
48goto msdoscommon\r
49rem ----------------------------------------------------------------------\r
3382cd59 50:msdos\r
331fdf1e
RS
51set X11=\r
52:msdoscommon\r
53rem Change to the Emacs root -- assume we are there\r
54rem cd c:\emacs\r
3382cd59
RS
55rem ----------------------------------------------------------------------\r
56Echo Configuring the source directory...\r
57cd src\r
58set PATHSH=paths-h.in\r
59if exist %PATHSH% goto src1\r
60set PATHSH=paths.h-in\r
61if exist %PATHSH% goto src1\r
62echo config: *** The file originally called "src/paths.h.in" cannot be found.\r
63cd ..\r
64goto end\r
65:src1\r
66set CONFIGH=config-h.in\r
67if exist %CONFIGH% goto src2\r
68set CONFIGH=config.h-in\r
69if exist %CONFIGH% goto src2\r
70echo config: *** The file originally called "src/config.h.in" cannot be found.\r
71cd ..\r
72goto end\r
73:src2\r
74set MAKEFILEIN=makefile.in-in\r
75if exist %MAKEFILEIN% goto src3\r
76set MAKEFILEIN=makefile-in.in\r
77if exist %MAKEFILEIN% goto src3\r
78echo makefile: *** The file originally called "src/makefile.in.in" cannot be found.\r
79cd ..\r
80goto end\r
81:src3\r
82\r
83rem Create "paths.h"\r
84rm -f paths.h\r
54133323 85sed -f ../msdos/sed4.inp <%PATHSH% >paths.h\r
3382cd59
RS
86\r
87rem Create "config.h"\r
331fdf1e
RS
88rm -f config.h config.tmp\r
89cp %CONFIGH% config.tmp\r
90if "%X11%" == "" goto src4\r
91sed -f ../msdos/sed4.inp <%CONFIGH% >config.tmp\r
92:src4\r
93sed -f ../msdos/sed2.inp <config.tmp >config.h\r
94rm -f config.tmp\r
3382cd59
RS
95\r
96rem On my system dir.h gets in the way. It's a VMS file so who cares.\r
97if exist dir.h ren dir.h vmsdir.h\r
98\r
99rem Create "makefile" from "makefile.in.in" using a context patch.\r
dd0d2cf3 100rm -f makefile junk.c\r
02b81698 101sed -e "1,/cpp stuff/s@^# .*$@@" <%MAKEFILEIN% >junk.c\r
3382cd59 102gcc -E junk.c | sed -f ../msdos/sed1.inp >makefile\r
dd0d2cf3 103rm -f junk.c\r
3382cd59
RS
104cd ..\r
105rem ----------------------------------------------------------------------\r
106Echo Configuring the library source directory...\r
107cd lib-src\r
315ebba3
RS
108set MAKEFILEIN=makefile.in-in\r
109if exist %MAKEFILEIN% goto libsrc1\r
110set MAKEFILEIN=makefile-in.in\r
111if exist %MAKEFILEIN% goto libsrc1\r
112echo makefile: *** The file originally called "lib-src/Makefile.in.in" cannot be found.\r
113cd ..\r
114goto end\r
115:libsrc1\r
3382cd59 116rem Create "makefile" from "makefile.in".\r
02b81698 117sed -e "1,/cpp stuff/s@^# .*$@@" <%MAKEFILEIN% >junk.c\r
331fdf1e
RS
118gcc -E -I. -I../src junk.c | sed -e "s/^ / /" -e "/^#/d" -e "/^[ \f]*$/d" >Makefile.new\r
119sed -f ../msdos/sed3.inp <makefile.new >makefile\r
3382cd59
RS
120cd ..\r
121rem ----------------------------------------------------------------------\r
122Echo Configuring the main directory...\r
123copy msdos\mainmake makefile >nul\r
124rem ----------------------------------------------------------------------\r
125:end\r
331fdf1e
RS
126set X11=\r
127set MAKEFILEIN=\r
128set PATHSH=\r
129set CONFIGH=\r
02b81698 130\r