diff options
| author | Jason Rumney | 2007-05-24 14:35:33 +0000 |
|---|---|---|
| committer | Jason Rumney | 2007-05-24 14:35:33 +0000 |
| commit | 8dd9fa24c7e454fcd0d63cedb8055cd8f2c47fa3 (patch) | |
| tree | 264574acef8e20dce99cabb0318bbf6d780d70cc /admin | |
| parent | 3654a2c34dd571ec303753c1930d81fae1d8be06 (diff) | |
| download | emacs-8dd9fa24c7e454fcd0d63cedb8055cd8f2c47fa3.tar.gz emacs-8dd9fa24c7e454fcd0d63cedb8055cd8f2c47fa3.zip | |
Use 7-zip for compression, as Info-zip's zip is not working as expected.
Diffstat (limited to 'admin')
| -rwxr-xr-x | admin/nt/makedist.bat | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/admin/nt/makedist.bat b/admin/nt/makedist.bat index b160da93c4f..729b77c48db 100755 --- a/admin/nt/makedist.bat +++ b/admin/nt/makedist.bat | |||
| @@ -25,8 +25,6 @@ rem along with GNU Emacs; see the file COPYING. If not, write to the | |||
| 25 | rem Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 25 | rem Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 26 | rem Boston, MA 02110-1301, USA. | 26 | rem Boston, MA 02110-1301, USA. |
| 27 | 27 | ||
| 28 | set ZIP=zip | ||
| 29 | |||
| 30 | if (%3) == () goto usage | 28 | if (%3) == () goto usage |
| 31 | if not (%4) == () goto %4 | 29 | if not (%4) == () goto %4 |
| 32 | 30 | ||
| @@ -34,18 +32,24 @@ if not (%4) == () goto %4 | |||
| 34 | 32 | ||
| 35 | echo Create full bin distribution | 33 | echo Create full bin distribution |
| 36 | copy %3\README.W32 emacs-%1\README.W32 | 34 | copy %3\README.W32 emacs-%1\README.W32 |
| 37 | 35 | rem Info-ZIP zip seems to be broken on Windows. | |
| 38 | %ZIP% -x emacs.mdp -x *.pdb -x *.opt -x *~ -x CVS -9 emacs-%1/BUGS emacs-%1/README emacs-%1/README.W32 emacs-%1/bin emacs-%1/etc emacs-%1/info emacs-%1/lisp %2-bin-i386.zip | 36 | rem It always writes to zip.zip and treats the zipfile argument as one |
| 37 | rem of the files to go in it. | ||
| 38 | rem zip -9 -r %2-bin-i386 emacs-%1/BUGS emacs-%1/README emacs-%1/README.W32 emacs-%1/bin emacs-%1/etc emacs-%1/info emacs-%1/lisp emacs-%1/leim -x emacs.mdp *.pdb *.opt *~ CVS | ||
| 39 | 7z a -tZIP -mx=9 -x!emacs.mdp -x!*.pdb -x!*.opt -x!*~ -x!CVS %2-bin-i386.zip emacs-%1/BUGS emacs-%1/README emacs-%1/README.W32 emacs-%1/bin emacs-%1/etc emacs-%1/info emacs-%1/lisp emacs-%1/leim | ||
| 39 | del emacs-%1\README.W32 | 40 | del emacs-%1\README.W32 |
| 40 | if not (%4) == () goto end | 41 | if not (%4) == () goto end |
| 41 | 42 | ||
| 42 | :barebin | 43 | :barebin |
| 43 | |||
| 44 | echo Create archive with just the basic binaries and generated files | 44 | echo Create archive with just the basic binaries and generated files |
| 45 | echo (the user needs to unpack the full source distribution for | 45 | echo (the user needs to unpack the full source distribution for |
| 46 | echo everything else) | 46 | echo everything else) |
| 47 | copy %3\README.W32 emacs-%1\README.W32 | 47 | copy %3\README.W32 emacs-%1\README.W32 |
| 48 | %ZIP% -9 emacs-%1/README.W32 emacs-%1/bin emacs-%1/etc/DOC emacs-%1/etc/DOC-X %2-barebin-i386.zip | 48 | rem Info-ZIP zip seems to be broken on Windows. |
| 49 | rem It always writes to zip.zip and treats the zipfile argument as one | ||
| 50 | rem of the files to go in it. | ||
| 51 | rem zip -9 -r %2-barebin-i386.zip emacs-%1/README.W32 emacs-%1/bin emacs-%1/etc/DOC-X | ||
| 52 | 7z a -tZIP -mx=9 %2-barebin-i386.zip emacs-%1/README.W32 emacs-%1/bin emacs-%1/etc/DOC-X | ||
| 49 | del emacs-%1\README.W32 | 53 | del emacs-%1\README.W32 |
| 50 | if not (%4) == () goto end | 54 | if not (%4) == () goto end |
| 51 | 55 | ||