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