diff options
| author | Christoph Scholtes | 2010-07-25 05:53:37 +0200 |
|---|---|---|
| committer | Juanma Barranquero | 2010-07-25 05:53:37 +0200 |
| commit | f8e0614ccbf0baa82f441de53fcf651e6610a963 (patch) | |
| tree | 6e163ef12fddd7db863bd841c0a6c96966a01aee | |
| parent | 35a7804dae480ba540f77f4431d2327275357d0f (diff) | |
| parent | d24076a601db4f988b261514bf62550f77d06837 (diff) | |
| download | emacs-f8e0614ccbf0baa82f441de53fcf651e6610a963.tar.gz emacs-f8e0614ccbf0baa82f441de53fcf651e6610a963.zip | |
Build binary distros on Windows using emacs-VERSION as root dir name.
* nt/makefile.w32-in: Copy README.W32 to installation directory
during `make install'. Remove README.W32 with `distclean' (in
case Emacs was installed in place). Use temporary directory to
create distribution zip files in `dist' target.
* nt/zipdist.bat: Simplify code using temporary directory.
| -rw-r--r-- | nt/ChangeLog | 10 | ||||
| -rw-r--r-- | nt/makefile.w32-in | 24 | ||||
| -rw-r--r-- | nt/zipdist.bat | 27 |
3 files changed, 35 insertions, 26 deletions
diff --git a/nt/ChangeLog b/nt/ChangeLog index f0aad69d64d..4dfdd16fd32 100644 --- a/nt/ChangeLog +++ b/nt/ChangeLog | |||
| @@ -1,3 +1,13 @@ | |||
| 1 | 2010-07-25 Christoph Scholtes <cschol2112@gmail.com> | ||
| 2 | |||
| 3 | Build binary distros on Windows using emacs-VERSION as root dir name. | ||
| 4 | |||
| 5 | * makefile.w32-in: Copy README.W32 to installation directory | ||
| 6 | during `make install'. Remove README.W32 with `distclean' (in | ||
| 7 | case Emacs was installed in place). Use temporary directory to | ||
| 8 | create distribution zip files in `dist' target. | ||
| 9 | * zipdist.bat: Simplify code using temporary directory. | ||
| 10 | |||
| 1 | 2010-07-25 Juanma Barranquero <lekktu@gmail.com> | 11 | 2010-07-25 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 12 | ||
| 3 | * runemacs.c (set_user_model_id): Fix prototype. | 13 | * runemacs.c (set_user_model_id): Fix prototype. |
diff --git a/nt/makefile.w32-in b/nt/makefile.w32-in index 47f9b901075..b0f5edb28a2 100644 --- a/nt/makefile.w32-in +++ b/nt/makefile.w32-in | |||
| @@ -25,6 +25,8 @@ | |||
| 25 | 25 | ||
| 26 | VERSION = 24.0.50 | 26 | VERSION = 24.0.50 |
| 27 | 27 | ||
| 28 | TMP_DIST_DIR = emacs-$(VERSION) | ||
| 29 | |||
| 28 | TRES = $(BLD)/emacs.res | 30 | TRES = $(BLD)/emacs.res |
| 29 | CLIENTRES = $(BLD)/emacsclient.res | 31 | CLIENTRES = $(BLD)/emacsclient.res |
| 30 | 32 | ||
| @@ -208,6 +210,7 @@ install-bin: all $(INSTALL_DIR)/bin install-other-dirs-$(MAKETYPE) | |||
| 208 | - $(CP) $(BLD)/ddeclient.exe $(INSTALL_DIR)/bin | 210 | - $(CP) $(BLD)/ddeclient.exe $(INSTALL_DIR)/bin |
| 209 | - $(CP) $(BLD)/cmdproxy.exe $(INSTALL_DIR)/bin | 211 | - $(CP) $(BLD)/cmdproxy.exe $(INSTALL_DIR)/bin |
| 210 | - $(CP) $(BLD)/runemacs.exe $(INSTALL_DIR)/bin | 212 | - $(CP) $(BLD)/runemacs.exe $(INSTALL_DIR)/bin |
| 213 | - $(CP) README.W32 $(INSTALL_DIR) | ||
| 211 | - $(DEL) ../same-dir.tst | 214 | - $(DEL) ../same-dir.tst |
| 212 | - $(DEL) $(INSTALL_DIR)/same-dir.tst | 215 | - $(DEL) $(INSTALL_DIR)/same-dir.tst |
| 213 | echo SameDirTest > "$(INSTALL_DIR)/same-dir.tst" | 216 | echo SameDirTest > "$(INSTALL_DIR)/same-dir.tst" |
| @@ -246,10 +249,22 @@ install-other-dirs-gmake: | |||
| 246 | install-shortcuts: | 249 | install-shortcuts: |
| 247 | "$(INSTALL_DIR)/bin/addpm" -q | 250 | "$(INSTALL_DIR)/bin/addpm" -q |
| 248 | 251 | ||
| 249 | dist: install-bin | 252 | dist: install-bin |
| 250 | $(CP) $(DIST_FILES) $(INSTALL_DIR)/bin | 253 | mkdir $(TMP_DIST_DIR) |
| 251 | $(CP) README.W32 $(INSTALL_DIR) | 254 | $(CP) "$(INSTALL_DIR)/BUGS" $(TMP_DIST_DIR) |
| 252 | $(COMSPEC)$(ComSpec) /c $(ARGQUOTE)zipdist.bat $(INSTALL_DIR) $(VERSION)$(ARGQUOTE) | 255 | $(CP) "$(INSTALL_DIR)/COPYING" $(TMP_DIST_DIR) |
| 256 | $(CP) "$(INSTALL_DIR)/README" $(TMP_DIST_DIR) | ||
| 257 | $(CP) "$(INSTALL_DIR)/README.W32" $(TMP_DIST_DIR) | ||
| 258 | $(CP) "$(INSTALL_DIR)/INSTALL" $(TMP_DIST_DIR) | ||
| 259 | $(CP_DIR) "$(INSTALL_DIR)/bin" $(TMP_DIST_DIR) | ||
| 260 | $(CP_DIR) "$(INSTALL_DIR)/etc" $(TMP_DIST_DIR) | ||
| 261 | $(CP_DIR) "$(INSTALL_DIR)/info" $(TMP_DIST_DIR) | ||
| 262 | $(CP_DIR) "$(INSTALL_DIR)/lisp" $(TMP_DIST_DIR) | ||
| 263 | $(CP_DIR) "$(INSTALL_DIR)/leim" $(TMP_DIST_DIR) | ||
| 264 | $(CP_DIR) "$(INSTALL_DIR)/site-lisp" $(TMP_DIST_DIR) | ||
| 265 | $(CP_DIR) $(DIST_FILES) $(TMP_DIST_DIR)/bin | ||
| 266 | $(COMSPEC)$(ComSpec) /c $(ARGQUOTE)zipdist.bat $(VERSION)$(ARGQUOTE) | ||
| 267 | $(DEL_TREE) $(TMP_DIST_DIR) | ||
| 253 | 268 | ||
| 254 | force-info: | 269 | force-info: |
| 255 | # Note that doc/emacs/makefile knows how to | 270 | # Note that doc/emacs/makefile knows how to |
| @@ -336,6 +351,7 @@ top-distclean: | |||
| 336 | - $(DEL) stamp_BLD | 351 | - $(DEL) stamp_BLD |
| 337 | - $(DEL) ../etc/DOC ../etc/DOC-X | 352 | - $(DEL) ../etc/DOC ../etc/DOC-X |
| 338 | - $(DEL) config.log Makefile | 353 | - $(DEL) config.log Makefile |
| 354 | - $(DEL) ../README.W32 | ||
| 339 | 355 | ||
| 340 | distclean: distclean-other-dirs-$(MAKETYPE) top-distclean | 356 | distclean: distclean-other-dirs-$(MAKETYPE) top-distclean |
| 341 | 357 | ||
diff --git a/nt/zipdist.bat b/nt/zipdist.bat index 87c4e06c4be..af90f6173b9 100644 --- a/nt/zipdist.bat +++ b/nt/zipdist.bat | |||
| @@ -20,25 +20,10 @@ rem You should have received a copy of the GNU General Public License | |||
| 20 | rem along with GNU Emacs. If not, see http://www.gnu.org/licenses/. | 20 | rem along with GNU Emacs. If not, see http://www.gnu.org/licenses/. |
| 21 | 21 | ||
| 22 | SETLOCAL | 22 | SETLOCAL |
| 23 | rem arg 1: full path to Emacs root directory | 23 | rem arg 1: Emacs version number |
| 24 | set ARG_PATH="%~f1" | 24 | set EMACS_VER=%1 |
| 25 | rem Path separator cannot be parsed correctly, substitute | ||
| 26 | set ARG_PATH=%ARG_PATH:\=;% | ||
| 27 | 25 | ||
| 28 | rem arg 2: Emacs version number | 26 | set TMP_DIST_DIR=emacs-%EMACS_VER% |
| 29 | set EMACS_VER=%2 | ||
| 30 | |||
| 31 | rem Parse out last directory from passed in full path (arg 1) | ||
| 32 | for /f "tokens=* delims=;" %%G in (%ARG_PATH%) do call :PARSE_PATH %%G | ||
| 33 | goto :EXIT | ||
| 34 | |||
| 35 | :PARSE_PATH | ||
| 36 | if "%1"=="" ( | ||
| 37 | goto :ZIP_CHECK | ||
| 38 | ) | ||
| 39 | set ROOT_DIR=%1 | ||
| 40 | SHIFT | ||
| 41 | goto :PARSE_PATH | ||
| 42 | 27 | ||
| 43 | rem Check, if 7zip is installed and available on path | 28 | rem Check, if 7zip is installed and available on path |
| 44 | :ZIP_CHECK | 29 | :ZIP_CHECK |
| @@ -53,14 +38,12 @@ goto EXIT | |||
| 53 | 38 | ||
| 54 | rem Build distributions | 39 | rem Build distributions |
| 55 | :ZIP_DIST | 40 | :ZIP_DIST |
| 56 | pushd ..\.. | ||
| 57 | rem Build and verify full distribution | 41 | rem Build and verify full distribution |
| 58 | 7z a -bd -tZIP -mx=9 -x!.bzrignore -x!.gitignore -xr!emacs.mdp -xr!*.pdb -xr!*.opt -xr!*~ -xr!CVS -xr!.arch-inventory emacs-%EMACS_VER%-bin-i386.zip %ROOT_DIR%/BUGS %ROOT_DIR%/COPYING %ROOT_DIR%/README %ROOT_DIR%/README.W32 %ROOT_DIR%/INSTALL %ROOT_DIR%/bin %ROOT_DIR%/etc %ROOT_DIR%/info %ROOT_DIR%/lisp %ROOT_DIR%/leim %ROOT_DIR%/site-lisp | 42 | 7z a -bd -tZIP -mx=9 -x!.bzrignore -x!.gitignore -xr!emacs.mdp -xr!*.pdb -xr!*.opt -xr!*~ -xr!CVS -xr!.arch-inventory emacs-%EMACS_VER%-bin-i386.zip %TMP_DIST_DIR% |
| 59 | 7z t emacs-%EMACS_VER%-bin-i386.zip | 43 | 7z t emacs-%EMACS_VER%-bin-i386.zip |
| 60 | rem Build and verify binary only distribution | 44 | rem Build and verify binary only distribution |
| 61 | 7z a -bd -tZIP -mx=9 emacs-%EMACS_VER%-barebin-i386.zip %ROOT_DIR%/README.W32 %ROOT_DIR%/bin %ROOT_DIR%/etc/DOC-X %ROOT_DIR%/COPYING | 45 | 7z a -bd -tZIP -mx=9 -x!.bzrignore -x!.gitignore -xr!emacs.mdp -xr!*.pdb -xr!*.opt -xr!*~ -xr!CVS -xr!.arch-inventory emacs-%EMACS_VER%-barebin-i386.zip %TMP_DIST_DIR%/README.W32 %TMP_DIST_DIR%/bin %TMP_DIST_DIR%/etc/DOC-X %TMP_DIST_DIR%/COPYING |
| 62 | 7z t emacs-%EMACS_VER%-barebin-i386.zip | 46 | 7z t emacs-%EMACS_VER%-barebin-i386.zip |
| 63 | popd | ||
| 64 | goto EXIT | 47 | goto EXIT |
| 65 | 48 | ||
| 66 | :EXIT | 49 | :EXIT |