Commit | Line | Data |
---|---|---|
a6a8ef05 EZ |
1 | @echo off\r |
2 | \r | |
114f9c96 | 3 | rem Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010\r |
a6a8ef05 | 4 | rem Free Software Foundation, Inc.\r |
9ad5de0c | 5 | \r |
a6a8ef05 EZ |
6 | rem Cannot use brackets in andrewi's email below because\r |
7 | rem older Windows shells will treat that as redirection.\r | |
9ad5de0c | 8 | \r |
a6a8ef05 | 9 | rem Author: Andrew Innes andrewi@gnu.org\r |
9ad5de0c | 10 | \r |
a6a8ef05 | 11 | rem This file is part of GNU Emacs.\r |
9ad5de0c GM |
12 | \r |
13 | rem GNU Emacs is free software: you can redistribute it and/or modify\r | |
a6a8ef05 | 14 | rem it under the terms of the GNU General Public License as published by\r |
9ad5de0c GM |
15 | rem the Free Software Foundation, either version 3 of the License, or\r |
16 | rem (at your option) any later version.\r | |
17 | \r | |
a6a8ef05 EZ |
18 | rem GNU Emacs is distributed in the hope that it will be useful,\r |
19 | rem but WITHOUT ANY WARRANTY; without even the implied warranty of\r | |
20 | rem MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r | |
21 | rem GNU General Public License for more details.\r | |
9ad5de0c | 22 | \r |
a6a8ef05 | 23 | rem You should have received a copy of the GNU General Public License\r |
9ad5de0c GM |
24 | rem along with GNU Emacs. If not, see http://www.gnu.org/licenses/.\r |
25 | \r | |
a6a8ef05 | 26 | \r |
a6a8ef05 EZ |
27 | if (%3) == () goto usage\r |
28 | if not (%4) == () goto %4\r | |
a6a8ef05 EZ |
29 | \r |
30 | :bin\r | |
31 | \r | |
a6a8ef05 EZ |
32 | echo Create full bin distribution\r |
33 | copy %3\README.W32 emacs-%1\README.W32\r | |
8dd9fa24 JR |
34 | rem Info-ZIP zip seems to be broken on Windows.\r |
35 | rem It always writes to zip.zip and treats the zipfile argument as one\r | |
36 | rem of the files to go in it.\r | |
3f8f7144 JR |
37 | rem zip -9 -r %2-bin-i386 emacs-%1/BUGS emacs-%1/COPYING emacs-%1/README emacs-%1/README.W32 emacs-%1/INSTALL emacs-%1/bin emacs-%1/etc emacs-%1/info emacs-%1/lisp emacs-%1/leim -x emacs.mdp *.pdb *.opt *~ CVS\r |
38 | 7z a -tZIP -mx=9 -xr!emacs.mdp -xr!*.pdb -xr!*.opt -xr!*~ -xr!CVS -xr!.arch-inventory %2-bin-i386.zip emacs-%1/BUGS emacs-%1/COPYING emacs-%1/README emacs-%1/README.W32 emacs-%1/INSTALL emacs-%1/bin emacs-%1/etc emacs-%1/info emacs-%1/lisp emacs-%1/leim emacs-%1/site-lisp\r | |
a6a8ef05 EZ |
39 | del emacs-%1\README.W32\r |
40 | if not (%4) == () goto end\r | |
41 | \r | |
a6a8ef05 | 42 | :barebin\r |
a6a8ef05 EZ |
43 | echo Create archive with just the basic binaries and generated files\r |
44 | echo (the user needs to unpack the full source distribution for\r | |
45 | echo everything else)\r | |
46 | copy %3\README.W32 emacs-%1\README.W32\r | |
8dd9fa24 JR |
47 | rem Info-ZIP zip seems to be broken on Windows.\r |
48 | rem It always writes to zip.zip and treats the zipfile argument as one\r | |
49 | rem of the files to go in it.\r | |
3f8f7144 JR |
50 | rem zip -9 -r %2-barebin-i386.zip emacs-%1/README.W32 emacs-%1/bin emacs-%1/etc/DOC-X emacs-%1/COPYING\r |
51 | 7z a -tZIP -mx=9 %2-barebin-i386.zip emacs-%1/README.W32 emacs-%1/bin emacs-%1/etc/DOC-X emacs-%1/COPYING\r | |
a6a8ef05 EZ |
52 | del emacs-%1\README.W32\r |
53 | if not (%4) == () goto end\r | |
54 | \r | |
55 | goto end\r | |
56 | \r | |
a6a8ef05 EZ |
57 | :usage\r |
58 | echo Generate source and binary distributions of emacs.\r | |
de71c3ba | 59 | echo Usage: %0 emacs-version dist-basename distfiles [bin,barebin]\r |
a6a8ef05 | 60 | echo (e.g., %0 19.34 emacs-19.34.5 d:\andrewi\distfiles)\r |
a6a8ef05 EZ |
61 | :end\r |
62 | \r | |
63 | goto skipArchTag\r | |
64 | arch-tag: 6e2ddd92-c1c9-4992-b6b5-207aaab72f68\r | |
65 | :skipArchTag\r |