(latexenc-find-file-coding-system): Don't inherit the EOL part of the
[emacs.git] / nt / envadd.bat
blobec9326a56c9fc908664511914895fe09128ce3eb
1 rem  Hack to change/add environment variables in the makefiles for the\r
2 rem  Windows platform.\r
3 rem\r
4 rem  Copyright (c) 2003 Free Software Foundation, Inc.\r
5 rem\r
6 rem  This file is part of GNU Emacs.\r
7 rem\r
8 rem  GNU Emacs is free software; you can redistribute it and/or modify\r
9 rem  it under the terms of the GNU General Public License as published by\r
10 rem  the Free Software Foundation; either version 2, or (at your option)\r
11 rem  any later version.\r
12 rem\r
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
17 rem\r
18 rem  You should have received a copy of the GNU General Public License\r
19 rem  along with GNU Emacs; see the file COPYING.  If not, write to\r
20 rem  the Free Software Foundation, Inc., 59 Temple Place - Suite 330,\r
21 rem  Boston, MA 02111-1307, USA.\r
22 rem\r
23 rem\r
24 rem  Usage:\r
25 rem    envadd "ENV1=VAL1" "ENV2=VAL2" ... /C <command line>\r
26 rem\r
27 rem  The "/C" switch marks the end of environment variables, and the\r
28 rem  beginning of the command line.\r
29 rem\r
30 rem  By Peter 'Luna' Runestig <peter@runestig.com> 2003\r
32 :Loop\r
33 if .%1% == ./C goto EndLoop\r
34 rem just to avoid an endless loop:\r
35 if .%1% == . goto EndLoop\r
36 set %1\r
37 shift\r
38 goto Loop\r
39 :EndLoop\r
41 rem Eat the "/C"\r
42 shift\r
43 rem Now, run the command line\r
44 %1 %2 %3 %4 %5 %6 %7 %8 %9\r
46 goto skipArchTag\r
47    arch-tag: 148c5181-dbce-43ae-bba6-1cc6e2a9ea75\r
48 :skipArchTag\r