Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emacs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
emacs
emacs
Commits
ddff705b
Commit
ddff705b
authored
Oct 17, 1994
by
Morten Welinder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
parent
72418504
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
89 additions
and
25 deletions
+89
-25
config.bat
config.bat
+89
-25
No files found.
config.bat
View file @
ddff705b
...
@@ -29,30 +29,66 @@ rem line length limit.
...
@@ -29,30 +29,66 @@ rem line length limit.
rem + rm, mv, chmod (From GNU file utilities).
rem + rm, mv, chmod (From GNU file utilities).
rem + sed.
rem + sed.
rem
rem
rem You must install in directory c:/emacs or change this script, the
rem You should be able to get all the above utilities from all
rem files msdos/sed*.inp, and lisp/dos-fns.el. (The latter must be
rem Simtel repositories, e.g., oak.oakland.edu in the directories
rem recompiled.)
rem "/pub/msdos/djgpp" and "/pub/msdos/gnuish". As usual, please
rem use your local mirroring site to reduce trans-Atlantic traffic.
rem ----------------------------------------------------------------------
rem ----------------------------------------------------------------------
if
not
"
%
2"
==
""
goto
usage
set
X11
=
set
nodebug
=
:again
if
"
%
1"
==
""
goto
usage
if
"
%
1"
==
"--with-x"
goto
withx
if
"
%
1"
==
"--no-debug"
goto
nodebug
if
"
%
1"
==
"msdos"
goto
msdos
if
"
%
1"
==
"msdos"
goto
msdos
if
"
%
1"
==
"msdos-X11"
goto
msdos11
:usage
:usage
echo
Usage
:
config
msdos
echo
Usage
:
config
[
--with-x
]
[
--no-debug
]
msdos
rem echo or config msdos-X11 -- don't even think about it
echo
[
Read
the
script
before
you
run
it
.
]
echo
[
Read
the
script
before
you
run
it
;
also
check
that
you
have
all
the
echo
necessary
utilities
.
]
goto
end
goto
end
rem ----------------------------------------------------------------------
rem ----------------------------------------------------------------------
:msdos
11
:withx
set
X11
=
y
set
X11
=
Y
goto
msdoscommon
shift
goto
again
rem ----------------------------------------------------------------------
rem ----------------------------------------------------------------------
:msdos
:nodebug
set
X11
=
set
nodebug
=
Y
:msdoscommon
shift
rem Change to the Emacs root -- assume we are there
goto
again
rem cd c:\emacs
rem ----------------------------------------------------------------------
rem ----------------------------------------------------------------------
:msdos
Echo
Checking
whether
`sed' is available...
Sed -e "w junk.$$$" <Nul
If Exist junk.$$$ Goto sedOk
Echo To configure `
Emacs
' you need to have `sed'
!
Goto
End
:sedOk
Echo
Checking
whether
`rm' is available...
rm -f junk.$$$
If Not Exist junk.$$$ Goto rmOk
Echo To configure `
Emacs
' you need to have `rm'
!
Goto
End
:rmOk
Echo
Checking
whether
`mv' is available...
rm -f junk.1 junk.2
echo foo >junk.1
mv junk.1 junk.2
If Exist junk.2 Goto mvOk
Echo To configure `
Emacs
' you need to have `mv'
!
rm
-f
junk
.1
Goto
End
:mvOk
rm
-f
junk
.2
Echo
Checking
whether
`gcc' is available...
echo main(){} >junk.c
gcc -c junk.c
if exist junk.o goto gccOk
Echo To configure `
Emacs
' you need to have `gcc'
!
rm
-f
junk
.c
Goto
End
:gccOk
rm
-f
junk
.c
junk
.o
Rem ----------------------------------------------------------------------
Echo
Configuring
the
source
directory
...
Echo
Configuring
the
source
directory
...
cd
src
cd
src
set
PATHSH
=
paths
-h
.in
set
PATHSH
=
paths
-h
.in
...
@@ -81,26 +117,38 @@ goto end
...
@@ -81,26 +117,38 @@ goto end
:src
3
:src
3
rem Create "paths.h"
rem Create "paths.h"
rm
-f
paths
.h
sed
-f
../msdos/sed4.inp
<
%PATHSH%
>
paths
.tmp
sed
-f
../msdos/sed4.inp
<
%PATHSH%
>
paths
.h
update
paths
.tmp
paths
.h
>
nul
rm
-f
paths
.tmp
rem Create "config.h"
rem Create "config.h"
rm
-f
config
.h
config
.tmp
rm
-f
config
.h
2
config
.tmp
cp
%CONFIGH%
config
.tmp
cp
%CONFIGH%
config
.tmp
if
"
%X1
1
%
"
==
""
goto
src4
if
"
%X1
1
%
"
==
""
goto
src4
sed
-f
../msdos/sed
4
.inp
<
%CONFIGH%
>
config
.tmp
sed
-f
../msdos/sed
2x
.inp
<
%CONFIGH%
>
config
.tmp
:src
4
:src
4
sed
-f
../msdos/sed2.inp
<
config
.tmp
>
config
.h
sed
-f
../msdos/sed2.inp
<
config
.tmp
>
config
.h2
rm
-f
config
.tmp
update
config
.h2
config
.h
>
nul
rm
-f
config
.tmp
config
.h2
rem On my system dir.h gets in the way. It's a VMS file so who cares.
rem On my system dir.h gets in the way. It's a VMS file so who cares.
if
exist
dir
.h
ren
dir
.h
vmsdir
.h
if
exist
dir
.h
ren
dir
.h
vmsdir
.h
rem Create "makefile" from "makefile.in.in"
using a context patch
.
rem Create "makefile" from "makefile.in.in".
rm
-f
makefile
junk
.c
rm
-f
makefile
junk
.c
sed
-e
"1,/cpp stuff/s@
^#
.*$@@"
<
%MAKEFILEIN%
>
junk
.c
sed
-e
"1,/cpp stuff/s@
^#
.*$@@"
<
%MAKEFILEIN%
>
junk
.c
gcc
-E
junk
.c
|
sed
-f
../msdos/sed1.inp
>
makefile
gcc
-E
junk
.c
|
sed
-f
../msdos/sed1.inp
>
makefile
rm
-f
junk
.c
rm
-f
junk
.c
if
"
%X1
1
%
"
==
""
goto
src5
mv
makefile
makefile
.tmp
sed
-f
../msdos/sed1x.inp
<
makefile
.tmp
>
makefile
rm
-f
makefile
.tmp
:src
5
if
"
%nodebug%
"
==
""
goto
src6
sed
-e
"/
^C
FLAGS *=/s/ *-g//"
<
makefile
>
makefile
.tmp
mv
-f
makefile
.tmp
makefile
:src
6
cd
..
cd
..
rem ----------------------------------------------------------------------
rem ----------------------------------------------------------------------
Echo
Configuring
the
library
source
directory
...
Echo
Configuring
the
library
source
directory
...
...
@@ -117,14 +165,30 @@ rem Create "makefile" from "makefile.in".
...
@@ -117,14 +165,30 @@ rem Create "makefile" from "makefile.in".
sed
-e
"1,/cpp stuff/s@
^#
.*$@@"
<
%MAKEFILEIN%
>
junk
.c
sed
-e
"1,/cpp stuff/s@
^#
.*$@@"
<
%MAKEFILEIN%
>
junk
.c
gcc
-E -I
.
-I
../src
junk
.c
|
sed
-e
"s/
^
/ /"
-e
"/
^#
/d"
-e
"/
^[
]*$/d"
>
Makefile
.new
gcc
-E -I
.
-I
../src
junk
.c
|
sed
-e
"s/
^
/ /"
-e
"/
^#
/d"
-e
"/
^[
]*$/d"
>
Makefile
.new
sed
-f
../msdos/sed3.inp
<
makefile
.new
>
makefile
sed
-f
../msdos/sed3.inp
<
makefile
.new
>
makefile
rm
-f
makefile
.new
junk
.c
if
"
%nodebug%
"
==
""
goto
libsrc2
sed
-e
"/
^C
FLAGS *=/s/ *-g//"
<
makefile
>
makefile
.tmp
mv
-f
makefile
.tmp
makefile
:libsrc
2
cd
..
rem ----------------------------------------------------------------------
if
"
%X1
1
%
"
==
""
goto
oldx1
Echo
Configuring
the
oldxmenu
directory
...
cd
oldxmenu
sed
-f
../msdos/sed5x.inp
<
makefile
.in
>
makefile
if
"
%nodebug%
"
==
""
goto
oldx2
sed
-e
"/
^C
FLAGS *=/s/ *-g//"
<
makefile
>
makefile
.tmp
mv
-f
makefile
.tmp
makefile
:oldx
2
cd
..
cd
..
:oldx
1
rem ----------------------------------------------------------------------
rem ----------------------------------------------------------------------
Echo
Configuring
the
main
directory
...
Echo
Configuring
the
main
directory
...
copy
msdos
\mainmake
makefile
>
nul
copy
msdos
\mainmake
makefile
>
nul
rem ----------------------------------------------------------------------
rem ----------------------------------------------------------------------
:end
:end
set
X11
=
set
X11
=
set
nodebug
=
set
MAKEFILEIN
=
set
MAKEFILEIN
=
set
PATHSH
=
set
PATHSH
=
set
CONFIGH
=
set
CONFIGH
=
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment