Mercurial > emacs
annotate admin/nt/makedist.bat @ 76573:8a4aa1e507b9
(lisp-font-lock-keywords-1): Highlight define-globalized-minor-mode as
a keyword.
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Mon, 19 Mar 2007 15:45:47 +0000 |
parents | adcbaec53f24 |
children | 396d6f737047 52a7f3f50b89 |
rev | line source |
---|---|
75655
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
1 @echo off |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
2 |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
3 rem Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
4 rem Free Software Foundation, Inc. |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
5 rem |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
6 rem Cannot use brackets in andrewi's email below because |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
7 rem older Windows shells will treat that as redirection. |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
8 rem |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
9 rem Author: Andrew Innes andrewi@gnu.org |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
10 rem |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
11 rem This file is part of GNU Emacs. |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
12 rem |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
13 rem GNU Emacs is free software; you can redistribute it and/or modify |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
14 rem it under the terms of the GNU General Public License as published by |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
15 rem the Free Software Foundation; either version 2, or (at your option) |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
16 rem any later version. |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
17 rem |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
18 rem GNU Emacs is distributed in the hope that it will be useful, |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
19 rem but WITHOUT ANY WARRANTY; without even the implied warranty of |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
20 rem MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
21 rem GNU General Public License for more details. |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
22 rem |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
23 rem You should have received a copy of the GNU General Public License |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
24 rem along with GNU Emacs; see the file COPYING. If not, write to the |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
25 rem Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
26 rem Boston, MA 02110-1301, USA. |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
27 |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
28 |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
29 rem Beware broken ports of tar. Recent cygwin versions work well, older |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
30 rem cygwin versions and the current MSys port have problems with DOS |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
31 rem line ends when reading file names from a file. Other ports have their |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
32 rem own problems too. |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
33 set TAR=tar |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
34 |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
35 rem Make a copy of current Emacs source |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
36 if (%3) == () goto usage |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
37 if not (%4) == () goto %4 |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
38 if not (%4) == (src) goto :lisp |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
39 |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
40 :src |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
41 |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
42 echo Create full source distribution, excluding leim |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
43 %TAR% --exclude leim --exclude _marker --exclude DOC --exclude DOC-X --exclude TAGS --exclude bin --exclude obj --exclude obj-spd --exclude oo --exclude oo-spd --exclude *~ --exclude *.rej -cvf - emacs-%1 | gzip -9 > %2-src.tar.gz |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
44 if not (%4) == () goto end |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
45 |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
46 :lisp |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
47 echo Create limited elisp source distribution |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
48 %TAR% --exclude *.rej --exclude *.elc --exclude *~ -cvf - emacs-%1/lisp | gzip -9 > %2-lisp.tar.gz |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
49 if not (%4) == () goto end |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
50 |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
51 :bin |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
52 |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
53 set eld=emacs-%1/lisp |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
54 |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
55 rem List of Lisp files that are not compiled and that should be |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
56 rem included in the bin distribution. |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
57 |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
58 rem It would be better to generate this list automatically. It is the |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
59 rem list of all .el files for which there is no corresponding .elc |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
60 rem file, minus ldefs-boot.el. --lute |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
61 |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
62 set elfiles=%eld%/cus-load.el %eld%/emacs-lisp/cl-specs.el %eld%/eshell/esh-groups.el %eld%/eshell/esh-maint.el %eld%/finder-inf.el %eld%/forms-d2.el %eld%/forms-pass.el %eld%/international/latin-1.el %eld%/international/latin-2.el %eld%/international/latin-3.el %eld%/international/latin-4.el %eld%/international/latin-5.el %eld%/international/latin-8.el %eld%/international/latin-9.el %eld%/international/mule-conf.el %eld%/language/czech.el %eld%/language/devanagari.el %eld%/language/english.el %eld%/language/georgian.el %eld%/language/greek.el %eld%/language/hebrew.el %eld%/language/japanese.el %eld%/language/kannada.el %eld%/language/korean.el %eld%/language/lao.el %eld%/language/malayalam.el %eld%/language/misc-lang.el %eld%/language/romanian.el %eld%/language/slovak.el %eld%/language/tamil.el %eld%/language/thai.el %eld%/language/utf-8-lang.el %eld%/loaddefs.el %eld%/loadup.el %eld%/mail/blessmail.el %eld%/mh-e/mh-acros.el %eld%/mh-e/mh-gnus.el %eld%/mh-e/mh-loaddefs.el %eld%/obsolete/keyswap.el %eld%/patcomp.el %eld%/paths.el %eld%/play/bruce.el %eld%/subdirs.el %eld%/term/AT386.el %eld%/term/apollo.el %eld%/term/bobcat.el %eld%/term/internal.el %eld%/term/iris-ansi.el %eld%/term/linux.el %eld%/term/lk201.el %eld%/term/news.el %eld%/term/vt102.el %eld%/term/vt125.el %eld%/term/vt200.el %eld%/term/vt201.el %eld%/term/vt220.el %eld%/term/vt240.el %eld%/term/vt300.el %eld%/term/vt320.el %eld%/term/vt400.el %eld%/term/vt420.el %eld%/term/wyse50.el %eld%/version.el |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
63 |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
64 set fns_el= |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
65 for %%f in (emacs-%1/bin/fns*) do set fns_el=%fns_el% emacs-%1/bin/%%f |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
66 |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
67 echo Create bin distribution |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
68 copy %3\README.W32 emacs-%1\README.W32 |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
69 |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
70 del #files# #elfiles# |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
71 for %%f in (emacs-%1/BUGS emacs-%1/README emacs-%1/README.W32) do echo %%f>>#files# |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
72 for %%f in (emacs-%1/bin/fns*) do echo emacs-%1/bin/%%f>>#elfiles# |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
73 for %%f in (emacs-%1/bin emacs-%1/etc emacs-%1/info emacs-%1/lisp) do echo %%f>>#files# |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
74 for %%f in (emacs-%1/lock emacs-%1/site-lisp) do echo %%f>>#files# |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
75 for %%f in (%elfiles% emacs-%1/site-lisp/subdirs.el) do echo %%f>>#elfiles# |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
76 |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
77 %TAR% --exclude temacs.exe --exclude emacs.mdp --exclude *.pdb --exclude *.opt --exclude "*.el" --exclude "*~" -T #files# -cvf %2-bin-i386.tar |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
78 %TAR% -T #elfiles# -rvf %2-bin-i386.tar |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
79 gzip -9 %2-bin-i386.tar |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
80 del emacs-%1\README.W32 |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
81 rem del #files# #elfiles# |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
82 if not (%4) == () goto end |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
83 |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
84 :fullbin |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
85 |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
86 echo Create full bin distribution |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
87 copy %3\README.W32 emacs-%1\README.W32 |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
88 |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
89 %TAR% --exclude temacs.exe --exclude emacs.mdp --exclude *.pdb --exclude *.opt --exclude *~ -cvf - emacs-%1/BUGS emacs-%1/README emacs-%1/README.W32 emacs-%1/bin emacs-%1/etc emacs-%1/info emacs-%1/lisp emacs-%1/lock emacs-%1/site-lisp | gzip -9 > %2-fullbin-i386.tar.gz |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
90 del emacs-%1\README.W32 |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
91 if not (%4) == () goto end |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
92 |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
93 :leim |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
94 |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
95 echo Create archive with precompiled leim files |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
96 %TAR% -cvf - emacs-%1/leim/leim-list.el emacs-%1/leim/quail emacs-%1/leim/ja-dic | gzip -9 > %2-leim.tar.gz |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
97 if not (%4) == () goto end |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
98 |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
99 :undumped |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
100 |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
101 echo Create archive with extra files needed for redumping emacs |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
102 copy %3\README-UNDUMP.W32 emacs-%1\README-UNDUMP.W32 |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
103 copy %3\dump.bat emacs-%1\bin |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
104 if exist emacs-%1\src\obj-spd\i386\temacs.exe copy emacs-%1\src\obj-spd\i386\temacs.exe emacs-%1\bin |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
105 if exist emacs-%1\src\oo-spd\i386\temacs.exe copy emacs-%1\src\oo-spd\i386\temacs.exe emacs-%1\bin |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
106 %TAR% -cvf - emacs-%1/README-UNDUMP.W32 emacs-%1/bin/dump.bat emacs-%1/bin/temacs.exe | gzip -9 > %2-undumped-i386.tar.gz |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
107 del emacs-%1\bin\temacs.exe |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
108 del emacs-%1\bin\dump.bat |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
109 del emacs-%1\README-UNDUMP.W32 |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
110 if not (%4) == () goto end |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
111 |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
112 :barebin |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
113 |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
114 echo Create archive with just the basic binaries and generated files |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
115 echo (the user needs to unpack the full source distribution for |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
116 echo everything else) |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
117 copy %3\README.W32 emacs-%1\README.W32 |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
118 %TAR% -cvf - emacs-%1/README.W32 emacs-%1/bin emacs-%1/etc/DOC emacs-%1/etc/DOC-X | gzip -9 > %2-barebin-i386.tar.gz |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
119 del emacs-%1\README.W32 |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
120 if not (%4) == () goto end |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
121 |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
122 goto end |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
123 |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
124 rem Only do this if explicitly requested |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
125 :zipfiles |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
126 |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
127 echo Create zip files for bin and lisp archives |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
128 mkdir distrib |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
129 cd distrib |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
130 gunzip -c ..\%2-bin-i386.tar.gz | %TAR% xf - |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
131 rem Need to split emacs.exe into fragments because it is too big now |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
132 rem to fit on a floppy even by itself. |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
133 copy %3\stitch.bat %2\bin |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
134 cd %2\bin |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
135 split -b 1000000 emacs.exe emacs |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
136 del emacs.exe |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
137 cd ..\.. |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
138 zip -rp9 em%5bin %2 |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
139 rm -rf %2 |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
140 zipsplit -n 1400000 -b .. em%5bin.zip |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
141 del em%5bin.zip |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
142 gunzip -c ..\%2-lisp.tar.gz | %TAR% xf - |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
143 zip -rp9 em%5lis %2 |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
144 rm -rf %2 |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
145 zipsplit -n 1400000 -b .. em%5lis.zip |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
146 del em%5lis.zip |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
147 cd .. |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
148 |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
149 goto end |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
150 |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
151 :usage |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
152 echo Generate source and binary distributions of emacs. |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
153 echo Usage: %0 emacs-version dist-basename distfiles [lisp,bin,undumped,barebin] |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
154 echo (e.g., %0 19.34 emacs-19.34.5 d:\andrewi\distfiles) |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
155 echo Or: %0 emacs-version dist-basename distfiles "zipfiles" short-version |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
156 echo (e.g., %0 20.6 emacs-20.6 d:\andrewi\distfiles zipfiles 206) |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
157 :end |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
158 |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
159 goto skipArchTag |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
160 arch-tag: 6e2ddd92-c1c9-4992-b6b5-207aaab72f68 |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
161 :skipArchTag |