From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Romain Francoise Newsgroups: gmane.emacs.devel Subject: Re: compress files patch for mac/make-package Date: Sat, 29 Oct 2005 12:42:25 +0200 Organization: orebokech dot com Message-ID: <87mzksy57y.fsf@pacem.orebokech.com> References: <87fyqz1i0s.fsf@pacem.orebokech.com> <87ach6x9h2.fsf@pacem.orebokech.com> <8764rttg8u.fsf@pacem.orebokech.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1130584902 17694 80.91.229.2 (29 Oct 2005 11:21:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 29 Oct 2005 11:21:42 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 29 13:21:41 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EVolu-0005jD-Vl for ged-emacs-devel@m.gmane.org; Sat, 29 Oct 2005 13:21:15 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EVogD-0002vR-QI for ged-emacs-devel@m.gmane.org; Sat, 29 Oct 2005 07:15:21 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EVoCw-0005zZ-W4 for emacs-devel@gnu.org; Sat, 29 Oct 2005 06:45:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EVoCt-0005xB-3K for emacs-devel@gnu.org; Sat, 29 Oct 2005 06:45:04 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EVoCr-0005wS-8H for emacs-devel@gnu.org; Sat, 29 Oct 2005 06:45:02 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtp (TLS-1.0:RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1EVoCr-0003iY-2G for emacs-devel@gnu.org; Sat, 29 Oct 2005 06:45:01 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1EVoBh-0006FK-9S for emacs-devel@gnu.org; Sat, 29 Oct 2005 12:43:49 +0200 Original-Received: from yeast.orebokech.com ([82.67.41.165]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 29 Oct 2005 12:43:49 +0200 Original-Received: from romain by yeast.orebokech.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 29 Oct 2005 12:43:49 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 98 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: yeast.orebokech.com Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAADFBMVEVGRE3u7+y+uqrEsFDK DzgtAAAACXBIWXMAAArwAAAK8AFCrDSYAAABz0lEQVQoz0XRz2vUQBQH8G8igTZVb72XhUKaq3+A qwcRvBTtC91SYV3cWrbiXRAccqqhh14S7NJDWUhMntCCHoReLHgToae1iIhe1JM/8KC4a3Z8k11x Dsl8+L73QmYwHDBNFkN/sOMJcpTfvWKCHnQrLP6XDe1svA8i6JMffsymLSigR0+2otPHVQatGQhf /TaR4PMR3NsmWhaU94CH599U03S5AXw69zqmtkC/BeZfJOMB+hfgPP06wRfgzO5xPMYQbm9Vx9Vo XcK+eXK2X03TGgicl3HjH1yL+o0OvlWje3bWT7o40HoAeJiZXVsDPzdlnpodJTt4/MeA40vJYRt3 9gVWFjeD6x/R6T7bgtVJr919tAHmogmXuXnrXVeQkhJcPRiVoC5TnZNOy3yc1jleJOo8uC9gWctE N6L3BlHE1KYLV0wZ5+zL+ZqqAQqvwrTgJ1jltdxnZ+/UKAWHOXMIBzOHBLbnmNXmAmzeEexFnE/V AL8hUMz5nJLfyJC7AsrWgYUV9NxQriptSpJA+dYKLaUXpYehPItoieqSFHIW00SLdBlTksAkLZP4 BLXtJIEqBPOE+rbTQrXkSupH4y2k1bxqyjydCu5mlcjN/QWzIgUOFeYlagAAABp6VFh0SlBFRy1D b2xvcnNwYWNlAAB42jMCAAAzADMRFn5jAAAAJ3pUWHRKUEVHLVNhbXBsaW5nLWZhY3RvcnMAAHja M6ow0jGsMARhABGDAulkDxtiAAAAAElFTkSuQmCC Cancel-Lock: sha1:fcJ4D8GvfO1FMOkpLl1Y5BC7GtI= X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:45081 Archived-At: "Richard M. Stallman" 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 | The sea! the sea! the open it's a miracle -- http://orebokech.com/ | sea! The blue, the fresh, the | ever free! --Bryan W. Procter