3 rem Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007
\r
4 rem Free Software Foundation, Inc.
\r
6 rem Cannot use brackets in andrewi's email below because
\r
7 rem older Windows shells will treat that as redirection.
\r
9 rem Author: Andrew Innes andrewi@gnu.org
\r
11 rem This file is part of GNU Emacs.
\r
13 rem GNU Emacs is free software; you can redistribute it and/or modify
\r
14 rem it under the terms of the GNU General Public License as published by
\r
15 rem the Free Software Foundation; either version 3, or (at your option)
\r
16 rem any later version.
\r
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
23 rem You should have received a copy of the GNU General Public License
\r
24 rem along with GNU Emacs; see the file COPYING. If not, write to the
\r
25 rem Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
\r
26 rem Boston, MA 02110-1301, USA.
\r
28 if (%3) == () goto usage
\r
29 if not (%4) == () goto %4
\r
33 echo Create full bin distribution
\r
34 copy %3\README.W32 emacs-%1\README.W32
\r
35 rem Info-ZIP zip seems to be broken on Windows.
\r
36 rem It always writes to zip.zip and treats the zipfile argument as one
\r
37 rem of the files to go in it.
\r
38 rem zip -9 -r %2-bin-i386 emacs-%1/BUGS 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
39 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/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
40 del emacs-%1\README.W32
\r
41 if not (%4) == () goto end
\r
44 echo Create archive with just the basic binaries and generated files
\r
45 echo (the user needs to unpack the full source distribution for
\r
46 echo everything else)
\r
47 copy %3\README.W32 emacs-%1\README.W32
\r
48 copy %3\dump.bat emacs-%1\bin\dump.bat
\r
49 rem Info-ZIP zip seems to be broken on Windows.
\r
50 rem It always writes to zip.zip and treats the zipfile argument as one
\r
51 rem of the files to go in it.
\r
52 rem zip -9 -r %2-barebin-i386.zip emacs-%1/README.W32 emacs-%1/bin emacs-%1/etc/DOC-X
\r
53 7z a -tZIP -mx=9 %2-barebin-i386.zip emacs-%1/README.W32 emacs-%1/bin emacs-%1/etc/DOC-X
\r
54 del emacs-%1\README.W32
\r
55 if not (%4) == () goto end
\r
60 echo Generate source and binary distributions of emacs.
\r
61 echo Usage: %0 emacs-version dist-basename distfiles [bin,barebin]
\r
62 echo (e.g., %0 19.34 emacs-19.34.5 d:\andrewi\distfiles)
\r
66 arch-tag: 6e2ddd92-c1c9-4992-b6b5-207aaab72f68
\r