diff options
| author | Andrew Innes | 2000-12-06 13:40:28 +0000 |
|---|---|---|
| committer | Andrew Innes | 2000-12-06 13:40:28 +0000 |
| commit | 8cba0ed7491423afdfd0ecc6e15dbf6e01a391d4 (patch) | |
| tree | 55fe54b1ff855835b3ef30ce75a5410faed37447 | |
| parent | 3887b4498e3d7233f86745c5784e09ccfa5a9145 (diff) | |
| download | emacs-8cba0ed7491423afdfd0ecc6e15dbf6e01a391d4.tar.gz emacs-8cba0ed7491423afdfd0ecc6e15dbf6e01a391d4.zip | |
(NEW_CYGWIN): New define.
(DQUOTE) [NEW_CYGWIN]: Cygnus changed the quoting rules since b20,
so we need to adjust how we escape embedded quotes.
| -rw-r--r-- | nt/gmake.defs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/nt/gmake.defs b/nt/gmake.defs index 40ae5e1c50f..62de73924fa 100644 --- a/nt/gmake.defs +++ b/nt/gmake.defs | |||
| @@ -76,6 +76,16 @@ SHELLTYPE=SH | |||
| 76 | SETLOADPATH=EMACSLOADPATH=../lisp | 76 | SETLOADPATH=EMACSLOADPATH=../lisp |
| 77 | endif | 77 | endif |
| 78 | 78 | ||
| 79 | # Cygwin has changed quoting rules somewhat since b20, in a way that | ||
| 80 | # affects makefiles using sh as the command processor, so we need to | ||
| 81 | # detect which rules to use. | ||
| 82 | ifdef USING_SH | ||
| 83 | sh_output := $(shell echo foo") | ||
| 84 | ifeq "$(sh_output)" "" | ||
| 85 | NEW_CYGWIN = 1 | ||
| 86 | endif | ||
| 87 | endif | ||
| 88 | |||
| 79 | MAKEDIR = $(CURDIR) | 89 | MAKEDIR = $(CURDIR) |
| 80 | ALL_DEPS = $^ | 90 | ALL_DEPS = $^ |
| 81 | EMPTY = | 91 | EMPTY = |
| @@ -179,7 +189,9 @@ CP = cp -f | |||
| 179 | CP_DIR = cp -rf | 189 | CP_DIR = cp -rf |
| 180 | DEL = rm | 190 | DEL = rm |
| 181 | DEL_TREE = rm -r | 191 | DEL_TREE = rm -r |
| 192 | |||
| 182 | ifdef USING_SH | 193 | ifdef USING_SH |
| 194 | |||
| 183 | IFNOTSAMEDIR = if [ ! -s ../same-dir.tst ] ; then | 195 | IFNOTSAMEDIR = if [ ! -s ../same-dir.tst ] ; then |
| 184 | FOREACH = for f in | 196 | FOREACH = for f in |
| 185 | FORVAR = $${f} | 197 | FORVAR = $${f} |
| @@ -187,8 +199,14 @@ FORDO = ; do | |||
| 187 | ENDFOR = ; done | 199 | ENDFOR = ; done |
| 188 | ENDIF = ; fi | 200 | ENDIF = ; fi |
| 189 | ARGQUOTE = ' | 201 | ARGQUOTE = ' |
| 202 | ifdef NEW_CYGWIN | ||
| 203 | DQUOTE = " | ||
| 204 | else | ||
| 190 | DQUOTE = "" | 205 | DQUOTE = "" |
| 206 | endif | ||
| 207 | |||
| 191 | else | 208 | else |
| 209 | |||
| 192 | IFNOTSAMEDIR = if not exist ../same-dir.tst | 210 | IFNOTSAMEDIR = if not exist ../same-dir.tst |
| 193 | FOREACH = for %%f in ( | 211 | FOREACH = for %%f in ( |
| 194 | FORVAR = %%f | 212 | FORVAR = %%f |
| @@ -197,6 +215,7 @@ ENDFOR = | |||
| 197 | ENDIF = | 215 | ENDIF = |
| 198 | ARGQUOTE = " | 216 | ARGQUOTE = " |
| 199 | DQUOTE = \" | 217 | DQUOTE = \" |
| 218 | |||
| 200 | endif | 219 | endif |
| 201 | 220 | ||
| 202 | # The location of the icon file | 221 | # The location of the icon file |