annotate nt/envadd.bat @ 57173:353df9943a65

(mm-copy-to-buffer): Preserve the data's unibyteness.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Mon, 20 Sep 2004 21:22:15 +0000
parents 27bc8b966642
children 23a17af379b1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
52423
d5ad9d67bb1a New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
1 rem Hack to change/add environment variables in the makefiles for the
d5ad9d67bb1a New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
2 rem Windows platform.
d5ad9d67bb1a New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
3 rem
52425
cf5d0a56b678 Fix copyright notice
Jason Rumney <jasonr@gnu.org>
parents: 52423
diff changeset
4 rem Copyright (c) 2003 Free Software Foundation, Inc.
52423
d5ad9d67bb1a New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
5 rem
d5ad9d67bb1a New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
6 rem This file is part of GNU Emacs.
d5ad9d67bb1a New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
7 rem
d5ad9d67bb1a New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
8 rem GNU Emacs is free software; you can redistribute it and/or modify
d5ad9d67bb1a New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
9 rem it under the terms of the GNU General Public License as published by
d5ad9d67bb1a New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
10 rem the Free Software Foundation; either version 2, or (at your option)
d5ad9d67bb1a New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
11 rem any later version.
d5ad9d67bb1a New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
12 rem
d5ad9d67bb1a New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
13 rem GNU Emacs is distributed in the hope that it will be useful,
d5ad9d67bb1a New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
14 rem but WITHOUT ANY WARRANTY; without even the implied warranty of
d5ad9d67bb1a New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
15 rem MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
d5ad9d67bb1a New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
16 rem GNU General Public License for more details.
d5ad9d67bb1a New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
17 rem
d5ad9d67bb1a New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
18 rem You should have received a copy of the GNU General Public License
d5ad9d67bb1a New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
19 rem along with GNU Emacs; see the file COPYING. If not, write to
d5ad9d67bb1a New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
20 rem the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
d5ad9d67bb1a New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
21 rem Boston, MA 02111-1307, USA.
d5ad9d67bb1a New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
22 rem
d5ad9d67bb1a New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
23 rem
d5ad9d67bb1a New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
24 rem Usage:
d5ad9d67bb1a New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
25 rem envadd "ENV1=VAL1" "ENV2=VAL2" ... /C <command line>
d5ad9d67bb1a New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
26 rem
d5ad9d67bb1a New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
27 rem The "/C" switch marks the end of environment variables, and the
d5ad9d67bb1a New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
28 rem beginning of the command line.
d5ad9d67bb1a New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
29 rem
d5ad9d67bb1a New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
30 rem By Peter 'Luna' Runestig <peter@runestig.com> 2003
d5ad9d67bb1a New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
31
d5ad9d67bb1a New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
32 :Loop
d5ad9d67bb1a New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
33 if .%1% == ./C goto EndLoop
d5ad9d67bb1a New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
34 rem just to avoid an endless loop:
d5ad9d67bb1a New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
35 if .%1% == . goto EndLoop
d5ad9d67bb1a New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
36 set %1
d5ad9d67bb1a New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
37 shift
d5ad9d67bb1a New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
38 goto Loop
d5ad9d67bb1a New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
39 :EndLoop
d5ad9d67bb1a New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
40
d5ad9d67bb1a New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
41 rem Eat the "/C"
d5ad9d67bb1a New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
42 shift
d5ad9d67bb1a New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
43 rem Now, run the command line
d5ad9d67bb1a New file.
Jason Rumney <jasonr@gnu.org>
parents:
diff changeset
44 %1 %2 %3 %4 %5 %6 %7 %8 %9
52428
27bc8b966642 Add arch taglines
Miles Bader <miles@gnu.org>
parents: 52425
diff changeset
45
27bc8b966642 Add arch taglines
Miles Bader <miles@gnu.org>
parents: 52425
diff changeset
46 goto skipArchTag
27bc8b966642 Add arch taglines
Miles Bader <miles@gnu.org>
parents: 52425
diff changeset
47 arch-tag: 148c5181-dbce-43ae-bba6-1cc6e2a9ea75
27bc8b966642 Add arch taglines
Miles Bader <miles@gnu.org>
parents: 52425
diff changeset
48 :skipArchTag