40880
|
1 # -sed6.inp------------------------------------------------------------------
|
85044
|
2 # Configuration script for doc/emacs/Makefile, doc/lispref/Makefile,
|
|
3 # doc/lispintro/Makefile, and doc/misc/Makefile under DJGPP v2.x
|
40880
|
4 # ---------------------------------------------------------------------------
|
36461
|
5 #
|
64890
|
6 # Copyright (C) 1997, 2000, 2001, 2002, 2003, 2004,
|
106815
|
7 # 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
|
36461
|
8 #
|
|
9 # This file is part of GNU Emacs.
|
|
10 #
|
|
11 # This file is free software; as a special exception, the author gives
|
|
12 # unlimited permission to copy and/or distribute it, with or without
|
|
13 # modifications, as long as this notice is preserved.
|
|
14 #
|
|
15 # This program is distributed in the hope that it will be useful,
|
|
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
18 #
|
|
19 # ----------------------------------------------------------------------
|
20283
|
20 /^srcdir *=/s/@[^@\n]*@/./
|
|
21 /^VPATH *=/s/@[^@\n]*@/./
|
28972
|
22 /^ENVADD/c\
|
|
23 ENVADD =\
|
|
24 export TEXINPUTS := $(srcdir)";"$(TEXINPUTS)\
|
|
25 export MAKEINFO := $(MAKEINFO) -I$(srcdir)
|
40880
|
26 /^texinputdir/c\
|
|
27 texinputdir =\
|
|
28 export texinputdir := $(srcdir)";"$(TEXINPUTS)
|
41426
|
29 /^SHELL *=/s/^/# /
|
52356
76e8f941998a
(elisp.dvi, index.texi): Replace Unix shell commands with equivalent
Eli Zaretskii <eliz@gnu.org>
diff
changeset
|
30 /^elisp.dvi:/,/^$/ {
|
76e8f941998a
(elisp.dvi, index.texi): Replace Unix shell commands with equivalent
Eli Zaretskii <eliz@gnu.org>
diff
changeset
|
31 /^ *if \[ *\a${permuted_index}/,/^ *fi *$/c\
|
76e8f941998a
(elisp.dvi, index.texi): Replace Unix shell commands with equivalent
Eli Zaretskii <eliz@gnu.org>
diff
changeset
|
32 command.com /c 'if not a${permuted_index}==a sh ./permute-index' \
|
76e8f941998a
(elisp.dvi, index.texi): Replace Unix shell commands with equivalent
Eli Zaretskii <eliz@gnu.org>
diff
changeset
|
33 command.com /c 'if not a${permuted_index}==a mv permuted.fns elisp.fns' \
|
76e8f941998a
(elisp.dvi, index.texi): Replace Unix shell commands with equivalent
Eli Zaretskii <eliz@gnu.org>
diff
changeset
|
34 command.com /c 'if not a${permuted_index}==a texindex elisp.tp' \
|
76e8f941998a
(elisp.dvi, index.texi): Replace Unix shell commands with equivalent
Eli Zaretskii <eliz@gnu.org>
diff
changeset
|
35 command.com /c 'if a${permuted_index}==a texindex elisp.??'
|
76e8f941998a
(elisp.dvi, index.texi): Replace Unix shell commands with equivalent
Eli Zaretskii <eliz@gnu.org>
diff
changeset
|
36 }
|
76e8f941998a
(elisp.dvi, index.texi): Replace Unix shell commands with equivalent
Eli Zaretskii <eliz@gnu.org>
diff
changeset
|
37 /^index.texi:/,/^$/ {
|
76e8f941998a
(elisp.dvi, index.texi): Replace Unix shell commands with equivalent
Eli Zaretskii <eliz@gnu.org>
diff
changeset
|
38 /^ *if \[ *\a${permuted_index}/,/^ *fi *$/c\
|
76e8f941998a
(elisp.dvi, index.texi): Replace Unix shell commands with equivalent
Eli Zaretskii <eliz@gnu.org>
diff
changeset
|
39 command.com /c 'if not a${permuted_index}==a cp -p ./index.perm index.texi' \
|
76e8f941998a
(elisp.dvi, index.texi): Replace Unix shell commands with equivalent
Eli Zaretskii <eliz@gnu.org>
diff
changeset
|
40 command.com /c 'if a${permuted_index}==a cp -p ./index.unperm index.texi'
|
76e8f941998a
(elisp.dvi, index.texi): Replace Unix shell commands with equivalent
Eli Zaretskii <eliz@gnu.org>
diff
changeset
|
41 }
|
99580
0a4e0a4890cb
Edit out Unixy shell features in maintainer-clean targets in doc/ Makefiles.
Eli Zaretskii <eliz@gnu.org>
diff
changeset
|
42 /^maintainer-clean:/,/^$/ {
|
0a4e0a4890cb
Edit out Unixy shell features in maintainer-clean targets in doc/ Makefiles.
Eli Zaretskii <eliz@gnu.org>
diff
changeset
|
43 s/^ for file in $(INFO_TARGETS)\; do rm -f.*$/ rm -f $(INFO_TARGETS)/
|
0a4e0a4890cb
Edit out Unixy shell features in maintainer-clean targets in doc/ Makefiles.
Eli Zaretskii <eliz@gnu.org>
diff
changeset
|
44 }
|
52401
|
45
|
111011
|
46 /^mkinfodir *=/s| @.*$|@command.com /c if not exist ..\\..\\info\\emacs mkdir ..\\..\\info|
|
|
47
|
52401
|
48 # arch-tag: defe1001-f35a-47f7-9635-3f5d33ee5e97
|