[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: compress files patch for mac/make-package
From: |
Romain Francoise |
Subject: |
Re: compress files patch for mac/make-package |
Date: |
Sat, 29 Oct 2005 12:42:25 +0200 |
"Richard M. Stallman" <address@hidden> writes:
> Ok, if Windows users generally think .el files shouldn't be compressed
> on Windows, then let's not compress them on Windows.
Here's the patch to implement this plan. I'll install it in a few days.
Index: Makefile.in
===================================================================
RCS file: /cvsroot/emacs/emacs/Makefile.in,v
retrieving revision 1.305
diff -c -r1.305 Makefile.in
*** Makefile.in 15 Sep 2005 12:36:49 -0000 1.305
--- Makefile.in 29 Oct 2005 10:29:34 -0000
***************
*** 223,228 ****
--- 223,231 ----
# By default, we uphold the dignity of our programs.
INSTALL_STRIP =
+ # We use gzip to compress installed .el files.
+ GZIP = @GZIP@
+
# ============================= Targets ==============================
# Program name transformation.
***************
*** 473,478 ****
--- 476,489 ----
(cd lisp; tar -chf - *.el *.elc) \
|(cd ${lispdir}; umask 022; tar -xvf - && cat > /dev/null) || exit
1; \
(cd ${lispdir}; find . -exec chown $${LOGNAME:-$$USERNAME} {} ';') ;
\
+ else true; fi
+ -unset CDPATH; \
+ if [ -x ${GZIP} ]; \
+ then \
+ echo "Compressing *.el ..." ; \
+ (cd ${lispdir}; for f in `find . -name "*.elc" -print`; do \
+ ${GZIP} -9n `echo $$f|sed 's/.elc$$/.el/'` ; \
+ done) \
else true; fi
-unset CDPATH; \
thisdir=`/bin/pwd`; \
Index: configure.in
===================================================================
RCS file: /cvsroot/emacs/emacs/configure.in,v
retrieving revision 1.399
diff -c -r1.399 configure.in
*** configure.in 25 Oct 2005 01:09:39 -0000 1.399
--- configure.in 29 Oct 2005 10:29:36 -0000
***************
*** 1272,1277 ****
--- 1272,1278 ----
AC_PATH_PROG(INSTALL_INFO, install-info)
AC_PATH_PROG(INSTALL_INFO, install-info,, /usr/sbin)
AC_PATH_PROG(INSTALL_INFO, install-info,:, /sbin)
+ AC_PATH_PROG(GZIP, gzip)
dnl Add our options to ac_link now, after it is set up.
Index: leim/Makefile.in
===================================================================
RCS file: /cvsroot/emacs/emacs/leim/Makefile.in,v
retrieving revision 1.70
diff -c -r1.70 Makefile.in
*** leim/Makefile.in 4 Jul 2005 15:27:32 -0000 1.70
--- leim/Makefile.in 29 Oct 2005 10:29:36 -0000
***************
*** 37,42 ****
--- 37,44 ----
# Where to install LEIM files.
INSTALLDIR=${datadir}/emacs/${version}/leim
+ GZIP = @GZIP@
+
# On Xenix and the IBM RS6000, double-dot gets screwed up.
dot = .
***************
*** 237,242 ****
--- 239,251 ----
rm -f ${INSTALLDIR}/.\#* ${INSTALLDIR}/*/.\#* ; \
rm -f ${INSTALLDIR}/*~ ${INSTALLDIR}/*/*~ ; \
rm -f ${INSTALLDIR}/*.orig ${INSTALLDIR}/*/*.orig ; \
+ else true; fi
+ -unset CDPATH; \
+ if [ -x ${GZIP} ]; \
+ then \
+ (cd ${INSTALLDIR}; for f in `find . -name "*.elc" -print`; do \
+ ${GZIP} -9n `echo $$f|sed 's/.elc$$/.el/'` ; \
+ done) \
else true; fi
-chmod -R a+r ${INSTALLDIR}
--
Romain Francoise <address@hidden> | The sea! the sea! the open
it's a miracle -- http://orebokech.com/ | sea! The blue, the fresh, the
| ever free! --Bryan W. Procter
- Re: compress files patch for mac/make-package, (continued)
- Re: compress files patch for mac/make-package, Kim F. Storm, 2005/10/20
- Re: compress files patch for mac/make-package, Eli Zaretskii, 2005/10/20
- Re: compress files patch for mac/make-package, Eli Zaretskii, 2005/10/20
- Re: compress files patch for mac/make-package, Romain Francoise, 2005/10/19
- Re: compress files patch for mac/make-package, Kim F. Storm, 2005/10/19
- Re: compress files patch for mac/make-package, Eli Zaretskii, 2005/10/20
- Re: compress files patch for mac/make-package, Eli Zaretskii, 2005/10/20
- Re: compress files patch for mac/make-package, Richard M. Stallman, 2005/10/20
- Re: compress files patch for mac/make-package, Eli Zaretskii, 2005/10/21
- Re: compress files patch for mac/make-package, Richard M. Stallman, 2005/10/22
- Re: compress files patch for mac/make-package,
Romain Francoise <=
- Re: compress files patch for mac/make-package, Eli Zaretskii, 2005/10/29
- Re: compress files patch for mac/make-package, Romain Francoise, 2005/10/29
- Re: compress files patch for mac/make-package, Eli Zaretskii, 2005/10/19