diff options
| author | Richard M. Stallman | 1994-04-29 19:29:03 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-04-29 19:29:03 +0000 |
| commit | 331fdf1eee04ae22b46cd8f73a8f847c1c1ae220 (patch) | |
| tree | 24eb156bc74b54660788a75db895007dcef07f2e | |
| parent | f57ddf6775eb05baae28b628f85e8d1ee6023d07 (diff) | |
| download | emacs-331fdf1eee04ae22b46cd8f73a8f847c1c1ae220.tar.gz emacs-331fdf1eee04ae22b46cd8f73a8f847c1c1ae220.zip | |
*** empty log message ***
| -rw-r--r-- | config.bat | 43 |
1 files changed, 34 insertions, 9 deletions
diff --git a/config.bat b/config.bat index 45aa38199f0..d83656c8b20 100644 --- a/config.bat +++ b/config.bat | |||
| @@ -1,6 +1,8 @@ | |||
| 1 | @echo off | 1 | @echo off |
| 2 | rem ---------------------------------------------------------------------- | 2 | rem ---------------------------------------------------------------------- |
| 3 | rem Configuration script for MSDOS | 3 | rem Configuration script for MSDOS |
| 4 | rem Copyright (C) 1994 Free Software Foundation, Inc. | ||
| 5 | |||
| 4 | rem This file is part of GNU Emacs. | 6 | rem This file is part of GNU Emacs. |
| 5 | 7 | ||
| 6 | rem GNU Emacs is free software; you can redistribute it and/or modify | 8 | rem GNU Emacs is free software; you can redistribute it and/or modify |
| @@ -19,23 +21,35 @@ rem the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | |||
| 19 | rem ---------------------------------------------------------------------- | 21 | rem ---------------------------------------------------------------------- |
| 20 | rem YOU'LL NEED THE FOLLOWING UTILITIES TO MAKE EMACS: | 22 | rem YOU'LL NEED THE FOLLOWING UTILITIES TO MAKE EMACS: |
| 21 | rem | 23 | rem |
| 22 | rem + djgpp version 1,11 | 24 | rem + msdos version 3 or better. |
| 23 | rem + make utility that allows breaking of 128 chars limit of commands. | 25 | rem + djgpp version 1,11 maint 4 or better. |
| 24 | rem ndmake (as of version 4.5) won't work due to a line length limit. | 26 | rem + make utility that allows breaking of the 128 chars limit on |
| 27 | rem command lines. ndmake (as of version 4.5) won't work due to a | ||
| 28 | rem line length limit. | ||
| 25 | rem + rm, mv, chmod (From GNU file utilities). | 29 | rem + rm, mv, chmod (From GNU file utilities). |
| 26 | rem + sed. | 30 | rem + sed. |
| 31 | rem | ||
| 32 | rem You must install in directory c:/emacs or change this script. | ||
| 27 | rem ---------------------------------------------------------------------- | 33 | rem ---------------------------------------------------------------------- |
| 28 | if not "%2" == "" goto usage | 34 | if not "%2" == "" goto usage |
| 29 | if "%1" == "msdos" goto msdos | 35 | if "%1" == "msdos" goto msdos |
| 36 | if "%1" == "msdos-X11" goto msdos11 | ||
| 30 | :usage | 37 | :usage |
| 31 | echo Usage: config msdos | 38 | echo Usage: config msdos |
| 39 | rem echo or config msdos-X11 -- don't even think about it | ||
| 32 | echo [Read the script before you run it; also check that you have all the | 40 | echo [Read the script before you run it; also check that you have all the |
| 33 | echo necessary utilities.] | 41 | echo necessary utilities.] |
| 34 | goto end | 42 | goto end |
| 35 | rem ---------------------------------------------------------------------- | 43 | rem ---------------------------------------------------------------------- |
| 44 | :msdos11 | ||
| 45 | set X11=y | ||
| 46 | goto msdoscommon | ||
| 47 | rem ---------------------------------------------------------------------- | ||
| 36 | :msdos | 48 | :msdos |
| 37 | rem Change to the Emacs root | 49 | set X11= |
| 38 | cd c:\emacs | 50 | :msdoscommon |
| 51 | rem Change to the Emacs root -- assume we are there | ||
| 52 | rem cd c:\emacs | ||
| 39 | rem ---------------------------------------------------------------------- | 53 | rem ---------------------------------------------------------------------- |
| 40 | Echo Configuring the source directory... | 54 | Echo Configuring the source directory... |
| 41 | cd src | 55 | cd src |
| @@ -69,8 +83,13 @@ rm -f paths.h | |||
| 69 | sed -e "s!/lib/emacs!!" -e "s!/usr/local!c:/emacs!" -e "s!/data!/etc!" <%PATHSH% >paths.h | 83 | sed -e "s!/lib/emacs!!" -e "s!/usr/local!c:/emacs!" -e "s!/data!/etc!" <%PATHSH% >paths.h |
| 70 | 84 | ||
| 71 | rem Create "config.h" | 85 | rem Create "config.h" |
| 72 | rm -f config.h | 86 | rm -f config.h config.tmp |
| 73 | sed -f ../msdos/sed2.inp <%CONFIGH% >config.h | 87 | cp %CONFIGH% config.tmp |
| 88 | if "%X11%" == "" goto src4 | ||
| 89 | sed -f ../msdos/sed4.inp <%CONFIGH% >config.tmp | ||
| 90 | :src4 | ||
| 91 | sed -f ../msdos/sed2.inp <config.tmp >config.h | ||
| 92 | rm -f config.tmp | ||
| 74 | 93 | ||
| 75 | rem On my system dir.h gets in the way. It's a VMS file so who cares. | 94 | rem On my system dir.h gets in the way. It's a VMS file so who cares. |
| 76 | if exist dir.h ren dir.h vmsdir.h | 95 | if exist dir.h ren dir.h vmsdir.h |
| @@ -85,11 +104,17 @@ rem ---------------------------------------------------------------------- | |||
| 85 | Echo Configuring the library source directory... | 104 | Echo Configuring the library source directory... |
| 86 | cd lib-src | 105 | cd lib-src |
| 87 | rem Create "makefile" from "makefile.in". | 106 | rem Create "makefile" from "makefile.in". |
| 88 | copy makefile makefile.bak >nul | 107 | sed -e "s@^# \(Generated.*\)$@/* \1 */@" -e "s@/\*\*/#\(.*\)$@/* \1 */@" <Makefile.in >junk.c |
| 89 | sed -f ../msdos/sed3.inp <makefile.in >makefile | 108 | gcc -E -I. -I../src junk.c | sed -e "s/^ / /" -e "/^#/d" -e "/^[ ]*$/d" >Makefile.new |
| 109 | sed -f ../msdos/sed3.inp <makefile.new >makefile | ||
| 90 | cd .. | 110 | cd .. |
| 91 | rem ---------------------------------------------------------------------- | 111 | rem ---------------------------------------------------------------------- |
| 92 | Echo Configuring the main directory... | 112 | Echo Configuring the main directory... |
| 93 | copy msdos\mainmake makefile >nul | 113 | copy msdos\mainmake makefile >nul |
| 94 | rem ---------------------------------------------------------------------- | 114 | rem ---------------------------------------------------------------------- |
| 95 | :end | 115 | :end |
| 116 | set X11= | ||
| 117 | set MAKEFILEIN= | ||
| 118 | set PATHSH= | ||
| 119 | set CONFIGH= | ||
| 120 | |||