Mercurial > emacs
annotate admin/nt/makedist.bat @ 112246:a60d544f1222
Explain why directory-abbrev-alist should be anchored (Bug#7777).
* files.texi (Directory Names): Explain why directory-abbrev-alist
elements should be anchored (Bug#7777).
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Sat, 08 Jan 2011 16:37:20 -0500 |
parents | 376148b31b5e |
children |
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 |
112218
376148b31b5e
Add 2011 to FSF/AIST copyright years.
Glenn Morris <rgm@gnu.org>
parents:
106815
diff
changeset
|
3 rem Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 |
75655
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. |
94830
21e11734e56b
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
79746
diff
changeset
|
5 |
75655
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. |
94830
21e11734e56b
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
79746
diff
changeset
|
8 |
75655
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 |
94830
21e11734e56b
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
79746
diff
changeset
|
10 |
75655
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. |
94830
21e11734e56b
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
79746
diff
changeset
|
12 |
21e11734e56b
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
79746
diff
changeset
|
13 rem GNU Emacs is free software: you can redistribute it and/or modify |
75655
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 |
94830
21e11734e56b
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
79746
diff
changeset
|
15 rem the Free Software Foundation, either version 3 of the License, or |
21e11734e56b
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
79746
diff
changeset
|
16 rem (at your option) any later version. |
21e11734e56b
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
79746
diff
changeset
|
17 |
75655
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. |
94830
21e11734e56b
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
79746
diff
changeset
|
22 |
75655
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 |
94830
21e11734e56b
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
79746
diff
changeset
|
24 rem along with GNU Emacs. If not, see http://www.gnu.org/licenses/. |
21e11734e56b
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
79746
diff
changeset
|
25 |
75655
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
26 |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
27 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
|
28 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
|
29 |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
30 :bin |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
31 |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
32 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
|
33 copy %3\README.W32 emacs-%1\README.W32 |
77797
de76ffcc1a43
Use 7-zip for compression, as Info-zip's zip is not working as expected.
Jason Rumney <jasonr@gnu.org>
parents:
77783
diff
changeset
|
34 rem Info-ZIP zip seems to be broken on Windows. |
de76ffcc1a43
Use 7-zip for compression, as Info-zip's zip is not working as expected.
Jason Rumney <jasonr@gnu.org>
parents:
77783
diff
changeset
|
35 rem It always writes to zip.zip and treats the zipfile argument as one |
de76ffcc1a43
Use 7-zip for compression, as Info-zip's zip is not working as expected.
Jason Rumney <jasonr@gnu.org>
parents:
77783
diff
changeset
|
36 rem of the files to go in it. |
79131
2818a9b47852
Include COPYING in top level directory of all distributed archives.
Jason Rumney <jasonr@gnu.org>
parents:
78432
diff
changeset
|
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 |
2818a9b47852
Include COPYING in top level directory of all distributed archives.
Jason Rumney <jasonr@gnu.org>
parents:
78432
diff
changeset
|
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 |
75655
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
39 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
|
40 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
|
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 :barebin |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
43 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
|
44 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
|
45 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
|
46 copy %3\README.W32 emacs-%1\README.W32 |
77797
de76ffcc1a43
Use 7-zip for compression, as Info-zip's zip is not working as expected.
Jason Rumney <jasonr@gnu.org>
parents:
77783
diff
changeset
|
47 rem Info-ZIP zip seems to be broken on Windows. |
de76ffcc1a43
Use 7-zip for compression, as Info-zip's zip is not working as expected.
Jason Rumney <jasonr@gnu.org>
parents:
77783
diff
changeset
|
48 rem It always writes to zip.zip and treats the zipfile argument as one |
de76ffcc1a43
Use 7-zip for compression, as Info-zip's zip is not working as expected.
Jason Rumney <jasonr@gnu.org>
parents:
77783
diff
changeset
|
49 rem of the files to go in it. |
79131
2818a9b47852
Include COPYING in top level directory of all distributed archives.
Jason Rumney <jasonr@gnu.org>
parents:
78432
diff
changeset
|
50 rem zip -9 -r %2-barebin-i386.zip emacs-%1/README.W32 emacs-%1/bin emacs-%1/etc/DOC-X emacs-%1/COPYING |
2818a9b47852
Include COPYING in top level directory of all distributed archives.
Jason Rumney <jasonr@gnu.org>
parents:
78432
diff
changeset
|
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 |
75655
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
52 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
|
53 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
|
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 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
|
56 |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
57 :usage |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
58 echo Generate source and binary distributions of emacs. |
77783
396d6f737047
Reduce the number of variants produced. Use zip.
Jason Rumney <jasonr@gnu.org>
parents:
75655
diff
changeset
|
59 echo Usage: %0 emacs-version dist-basename distfiles [bin,barebin] |
75655
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
60 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
|
61 :end |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
62 |
adcbaec53f24
Change EOL format to DOS. Don't use redirection characters in REM lines.
Eli Zaretskii <eliz@gnu.org>
parents:
75651
diff
changeset
|
63 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
|
64 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
|
65 :skipArchTag |