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