--- /dev/null
+rem Hack to change/add environment variables in the makefiles for the\r
+rem Windows platform.\r
+rem\r
+rem Copyright (c) 1993-2000 Free Software Foundation, Inc.\r
+rem\r
+rem This file is part of GNU Emacs.\r
+rem\r
+rem GNU Emacs is free software; you can redistribute it and/or modify\r
+rem it under the terms of the GNU General Public License as published by\r
+rem the Free Software Foundation; either version 2, or (at your option)\r
+rem any later version.\r
+rem\r
+rem GNU Emacs is distributed in the hope that it will be useful,\r
+rem but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+rem MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r
+rem GNU General Public License for more details.\r
+rem\r
+rem You should have received a copy of the GNU General Public License\r
+rem along with GNU Emacs; see the file COPYING. If not, write to\r
+rem the Free Software Foundation, Inc., 59 Temple Place - Suite 330,\r
+rem Boston, MA 02111-1307, USA.\r
+rem\r
+rem\r
+rem Usage:\r
+rem envadd "ENV1=VAL1" "ENV2=VAL2" ... /C <command line>\r
+rem\r
+rem The "/C" switch marks the end of environment variables, and the\r
+rem beginning of the command line.\r
+rem\r
+rem By Peter 'Luna' Runestig <peter@runestig.com> 2003\r
+\r
+:Loop\r
+if .%1% == ./C goto EndLoop\r
+rem just to avoid an endless loop:\r
+if .%1% == . goto EndLoop\r
+set %1\r
+shift\r
+goto Loop\r
+:EndLoop\r
+\r
+rem Eat the "/C"\r
+shift\r
+rem Now, run the command line\r
+%1 %2 %3 %4 %5 %6 %7 %8 %9\r