Commit | Line | Data |
---|---|---|
e65be2d5 JR |
1 | rem Hack to change/add environment variables in the makefiles for the\r |
2 | rem Windows platform.\r | |
eef0be9e | 3 | \r |
ab422c4d | 4 | rem Copyright (C) 2003-2013 Free Software Foundation, Inc.\r |
eef0be9e | 5 | \r |
e65be2d5 | 6 | rem This file is part of GNU Emacs.\r |
eef0be9e GM |
7 | \r |
8 | rem GNU Emacs is free software: you can redistribute it and/or modify\r | |
e65be2d5 | 9 | rem it under the terms of the GNU General Public License as published by\r |
eef0be9e GM |
10 | rem the Free Software Foundation, either version 3 of the License, or\r |
11 | rem (at your option) any later version.\r | |
12 | \r | |
e65be2d5 JR |
13 | rem GNU Emacs is distributed in the hope that it will be useful,\r |
14 | rem but WITHOUT ANY WARRANTY; without even the implied warranty of\r | |
15 | rem MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r | |
16 | rem GNU General Public License for more details.\r | |
eef0be9e | 17 | \r |
e65be2d5 | 18 | rem You should have received a copy of the GNU General Public License\r |
eef0be9e GM |
19 | rem along with GNU Emacs. If not, see http://www.gnu.org/licenses/.\r |
20 | \r | |
21 | \r | |
e65be2d5 JR |
22 | rem Usage:\r |
23 | rem envadd "ENV1=VAL1" "ENV2=VAL2" ... /C <command line>\r | |
24 | rem\r | |
25 | rem The "/C" switch marks the end of environment variables, and the\r | |
26 | rem beginning of the command line.\r | |
27 | rem\r | |
28 | rem By Peter 'Luna' Runestig <peter@runestig.com> 2003\r | |
29 | \r | |
30 | :Loop\r | |
31 | if .%1% == ./C goto EndLoop\r | |
32 | rem just to avoid an endless loop:\r | |
33 | if .%1% == . goto EndLoop\r | |
34 | set %1\r | |
35 | shift\r | |
36 | goto Loop\r | |
37 | :EndLoop\r | |
38 | \r | |
39 | rem Eat the "/C"\r | |
40 | shift\r | |
41 | rem Now, run the command line\r | |
42 | %1 %2 %3 %4 %5 %6 %7 %8 %9\r | |
4256310d | 43 | \r |