aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Scholtes2010-07-25 05:53:37 +0200
committerJuanma Barranquero2010-07-25 05:53:37 +0200
commitf8e0614ccbf0baa82f441de53fcf651e6610a963 (patch)
tree6e163ef12fddd7db863bd841c0a6c96966a01aee
parent35a7804dae480ba540f77f4431d2327275357d0f (diff)
parentd24076a601db4f988b261514bf62550f77d06837 (diff)
downloademacs-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/ChangeLog10
-rw-r--r--nt/makefile.w32-in24
-rw-r--r--nt/zipdist.bat27
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 @@
12010-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
12010-07-25 Juanma Barranquero <lekktu@gmail.com> 112010-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
26VERSION = 24.0.50 26VERSION = 24.0.50
27 27
28TMP_DIST_DIR = emacs-$(VERSION)
29
28TRES = $(BLD)/emacs.res 30TRES = $(BLD)/emacs.res
29CLIENTRES = $(BLD)/emacsclient.res 31CLIENTRES = $(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:
246install-shortcuts: 249install-shortcuts:
247 "$(INSTALL_DIR)/bin/addpm" -q 250 "$(INSTALL_DIR)/bin/addpm" -q
248 251
249dist: install-bin 252dist: 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
254force-info: 269force-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
340distclean: distclean-other-dirs-$(MAKETYPE) top-distclean 356distclean: 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
20rem along with GNU Emacs. If not, see http://www.gnu.org/licenses/. 20rem along with GNU Emacs. If not, see http://www.gnu.org/licenses/.
21 21
22SETLOCAL 22SETLOCAL
23rem arg 1: full path to Emacs root directory 23rem arg 1: Emacs version number
24set ARG_PATH="%~f1" 24set EMACS_VER=%1
25rem Path separator cannot be parsed correctly, substitute
26set ARG_PATH=%ARG_PATH:\=;%
27 25
28rem arg 2: Emacs version number 26set TMP_DIST_DIR=emacs-%EMACS_VER%
29set EMACS_VER=%2
30
31rem Parse out last directory from passed in full path (arg 1)
32for /f "tokens=* delims=;" %%G in (%ARG_PATH%) do call :PARSE_PATH %%G
33goto :EXIT
34
35:PARSE_PATH
36if "%1"=="" (
37 goto :ZIP_CHECK
38)
39set ROOT_DIR=%1
40SHIFT
41goto :PARSE_PATH
42 27
43rem Check, if 7zip is installed and available on path 28rem Check, if 7zip is installed and available on path
44:ZIP_CHECK 29:ZIP_CHECK
@@ -53,14 +38,12 @@ goto EXIT
53 38
54rem Build distributions 39rem Build distributions
55:ZIP_DIST 40:ZIP_DIST
56pushd ..\..
57rem Build and verify full distribution 41rem Build and verify full distribution
587z 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 427z 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%
597z t emacs-%EMACS_VER%-bin-i386.zip 437z t emacs-%EMACS_VER%-bin-i386.zip
60rem Build and verify binary only distribution 44rem Build and verify binary only distribution
617z 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 457z 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
627z t emacs-%EMACS_VER%-barebin-i386.zip 467z t emacs-%EMACS_VER%-barebin-i386.zip
63popd
64goto EXIT 47goto EXIT
65 48
66:EXIT 49:EXIT