Mercurial > emacs
annotate admin/nt/makedist.bat @ 40201:c5e9e29b323a
Remove remaining obsolete reference to
GETTING.GNU.SOFTWARE.
author | Andrew Innes <andrewi@gnu.org> |
---|---|
date | Tue, 23 Oct 2001 10:54:21 +0000 |
parents | 681070eb1e54 |
children | 187e89d56f7a |
rev | line source |
---|---|
39055 | 1 @echo off |
2 | |
39120
681070eb1e54
Remove reference to obsolete file
Andrew Innes <andrewi@gnu.org>
parents:
39055
diff
changeset
|
3 rem This batch file doesn't work with Cygwin tar because #files# |
681070eb1e54
Remove reference to obsolete file
Andrew Innes <andrewi@gnu.org>
parents:
39055
diff
changeset
|
4 rem has DOS line endings, which Cygwin tar misinterprets. |
681070eb1e54
Remove reference to obsolete file
Andrew Innes <andrewi@gnu.org>
parents:
39055
diff
changeset
|
5 rem I use the version of tar from |
681070eb1e54
Remove reference to obsolete file
Andrew Innes <andrewi@gnu.org>
parents:
39055
diff
changeset
|
6 rem ftp://ftp.gnu.org/gnu/windows/emacs/utilities/i386/tar-1.11.2a.exe |
681070eb1e54
Remove reference to obsolete file
Andrew Innes <andrewi@gnu.org>
parents:
39055
diff
changeset
|
7 rem renamed as wtar.exe. |
39055 | 8 set TAR=wtar |
9 | |
10 rem Make a copy of current Emacs source | |
11 if (%3) == () goto usage | |
12 if not (%4) == () goto %4 | |
13 if not (%4) == (src) goto :lisp | |
14 | |
15 :src | |
16 | |
17 echo Create full source distribution, excluding leim | |
18 %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 | |
19 if not (%4) == () goto end | |
20 | |
21 :lisp | |
22 echo Create limited elisp source distribution | |
23 %TAR% --exclude *.rej --exclude *.elc --exclude *~ -cvf - emacs-%1/lisp | gzip -9 > %2-lisp.tar.gz | |
24 if not (%4) == () goto end | |
25 | |
26 :bin | |
27 | |
28 set eld=emacs-%1/lisp | |
29 | |
30 rem Keep this list in sync with the DONTCOMPILE list in lisp/Makefile.in | |
31 | |
32 set elfiles=%eld%/cus-load.el %eld%/cus-start.el %eld%/emacs-lisp/cl-specs.el %eld%/eshell/esh-maint.el %eld%/eshell/esh-groups.el %eld%/finder-inf.el %eld%/forms-d2.el %eld%/forms-pass.el %eld%/generic-x.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%/loaddefs.el %eld%/loadup.el %eld%/mail/blessmail.el %eld%/patcomp.el %eld%/paths.el %eld%/play/bruce.el %eld%/subdirs.el %eld%/term/internal.el %eld%/term/AT386.el %eld%/term/apollo.el %eld%/term/bobcat.el %eld%/term/iris-ansi.el %eld%/term/keyswap.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%/term/xterm.el %eld%/version.el | |
33 | |
34 set fns_el= | |
35 for %%f in (emacs-%1/bin/fns*) do set fns_el=%fns_el% emacs-%1/bin/%%f | |
36 | |
37 echo Create bin distribution | |
38 copy %3\README.W32 emacs-%1\README.W32 | |
39 | |
40 del #files# | |
39120
681070eb1e54
Remove reference to obsolete file
Andrew Innes <andrewi@gnu.org>
parents:
39055
diff
changeset
|
41 for %%f in (emacs-%1/BUGS emacs-%1/README emacs-%1/README.W32) do echo %%f>>#files# |
39055 | 42 for %%f in (emacs-%1/bin/fns*) do echo emacs-%1/bin/%%f>>#files# |
43 for %%f in (emacs-%1/bin emacs-%1/etc emacs-%1/info emacs-%1/lisp %elfiles%) do echo %%f>>#files# | |
44 for %%f in (%eld%/term/*.el) do echo %eld%/term/%%f>>#files# | |
45 for %%f in (emacs-%1/lock emacs-%1/site-lisp emacs-%1/site-lisp/subdirs.el) do echo %%f>>#files# | |
46 %TAR% --exclude temacs.exe --exclude emacs.mdp --exclude *.pdb --exclude *.opt --exclude *.el --exclude *~ -T #files# -cvf - | gzip -9 > %2-bin-i386.tar.gz | |
47 del emacs-%1\README.W32 | |
48 del #files# | |
49 if not (%4) == () goto end | |
50 | |
51 :fullbin | |
52 | |
53 echo Create full bin distribution | |
54 copy %3\README.W32 emacs-%1\README.W32 | |
55 | |
40201
c5e9e29b323a
Remove remaining obsolete reference to
Andrew Innes <andrewi@gnu.org>
parents:
39120
diff
changeset
|
56 %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 |
39055 | 57 del emacs-%1\README.W32 |
58 if not (%4) == () goto end | |
59 | |
60 :leim | |
61 | |
62 echo Create archive with precompiled leim files | |
63 %TAR% -cvf - emacs-%1/leim/leim-list.el emacs-%1/leim/quail emacs-%1/leim/ja-dic | gzip -9 > %2-leim.tar.gz | |
64 if not (%4) == () goto end | |
65 | |
66 :undumped | |
67 | |
68 echo Create archive with extra files needed for redumping emacs | |
69 copy %3\README-UNDUMP.W32 emacs-%1\README-UNDUMP.W32 | |
70 copy %3\dump.bat emacs-%1\bin | |
71 if exist emacs-%1\src\obj-spd\i386\temacs.exe copy emacs-%1\src\obj-spd\i386\temacs.exe emacs-%1\bin | |
72 if exist emacs-%1\src\oo-spd\i386\temacs.exe copy emacs-%1\src\oo-spd\i386\temacs.exe emacs-%1\bin | |
73 %TAR% -cvf - emacs-%1/README-UNDUMP.W32 emacs-%1/bin/dump.bat emacs-%1/bin/temacs.exe | gzip -9 > %2-undumped-i386.tar.gz | |
74 del emacs-%1\bin\temacs.exe | |
75 del emacs-%1\bin\dump.bat | |
76 del emacs-%1\README-UNDUMP.W32 | |
77 if not (%4) == () goto end | |
78 | |
79 :barebin | |
80 | |
81 echo Create archive with just the basic binaries and generated files | |
82 echo (the user needs to unpack the full source distribution for | |
83 echo everything else) | |
84 copy %3\README.W32 emacs-%1\README.W32 | |
85 %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 | |
86 del emacs-%1\README.W32 | |
87 if not (%4) == () goto end | |
88 | |
89 goto end | |
90 | |
91 rem Only do this if explicitly requested | |
92 :zipfiles | |
93 | |
94 echo Create zip files for bin and lisp archives | |
95 mkdir distrib | |
96 cd distrib | |
97 gunzip -c ..\%2-bin-i386.tar.gz | %TAR% xf - | |
98 zip -rp9 em%5_bin %2 | |
99 rm -rf %2 | |
40201
c5e9e29b323a
Remove remaining obsolete reference to
Andrew Innes <andrewi@gnu.org>
parents:
39120
diff
changeset
|
100 zipsplit -n 2000000 -b .. em%5_bin.zip |
39055 | 101 del em%5_bin.zip |
102 gunzip -c ..\%2-lisp.tar.gz | %TAR% xf - | |
103 zip -rp9 em%5_lis %2 | |
104 rm -rf %2 | |
105 zipsplit -n 1400000 -b .. em%5_lis.zip | |
106 del em%5_lis.zip | |
107 cd .. | |
108 | |
109 goto end | |
110 | |
111 :usage | |
112 echo Generate source and binary distributions of emacs. | |
113 echo Usage: %0 emacs-version dist-basename distfiles [lisp,bin,undumped,barebin] | |
114 echo (e.g., %0 19.34 emacs-19.34.5 d:\andrewi\distfiles) | |
115 echo Or: %0 emacs-version dist-basename distfiles "zipfiles" short-version | |
116 echo (e.g., %0 20.6 emacs-20.6 d:\andrewi\distfiles zipfiles 206) | |
117 :end |