From xemacs-m  Sun Jan  5 22:10:22 1997
Received: from bayserve.net (bay1.bayserve.net [206.148.244.200])
          by xemacs.cs.uiuc.edu (8.8.4/8.8.4) with ESMTP
	  id WAA23998 for <xemacs-beta@xemacs.org>; Sun, 5 Jan 1997 22:10:22 -0600 (CST)
Received: from localhost (jmiller@localhost) by  bayserve.net (8.7.2/8.7.2) with SMTP id XAA14683 for <xemacs-beta@xemacs.org>; Sun, 5 Jan 1997 23:14:55 -0500 (EST)
Date: Sun, 5 Jan 1997 23:14:54 -0500 (EST)
From: Jeff Miller <jmiller@bay1.bayserve.net>
To: beta-list <xemacs-beta@xemacs.org>
Subject: patch to gzip *.el files
Message-ID: <Pine.SUN.3.95.970105230137.14057A-100000@bay1.bayserve.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII


 I seem to remember talk about gzip the .el files in order to save space
when installed.  Since I was in a space squeeze, I took a crack at it.

 The following patch gzips any .el file that has an accompanying .elc
during a "make install".  I'm seeing a net gain of 14 or 15 Mbytes.  The
patch also changes the umask used durint the tar from 022 to 222.  I get
an uneasy feeling when all the lisp stuff gets installed with an ownership
of me and is rw.  :-)

--- Makefile.in.orig    Sun Jan  5 16:12:41 1997
+++ Makefile.in Sun Jan  5 20:07:08 1997
@@ -367,7 +367,7 @@
           [ -d $${dir} ] \
           && [ `(cd $${dir} && /bin/pwd)` != `(cd $${dest} && /bin/pwd)`
] \
           && (echo "Copying $${dir}..." ; \
-              (cd $${dir}; tar -cf - . )|(cd $${dest};umask 022; tar -xf
- );\
+              (cd $${dir}; tar -cf - . )|(cd $${dest};umask 222; tar -xf
- );\
               chmod 0755 $${dest}; \
               for subdir in `find $${dest} -type d ! -name RCS ! -name
SCCS ! -name CVS -print` ; do \
                 rm -rf $${subdir}/RCS ; \
@@ -377,6 +377,12 @@
                 rm -f  $${subdir}/*~ ; \
               done) ; \
         done
+       for elc in `find ${lispdir} -name *.elc -print` ; do \
+         el=`echo $${elc} | sed -e /.elc/s//.el/` ; \
+         if [ -f $${el} ]; then \
+           gzip -f9 $${el} ; \
+         fi ; \
+       done
        if [ `(cd ${srcdir}/info && /bin/pwd)` != `(cd ${infodir} &&
/bin/pwd)` ]; \
        then \
          (cd ${srcdir}/info ; \

 And in case you're wondering, the following files do not have .elc files,
& so do not get gzipped.

./paths.el
./version.el
./edebug/edebug-test.el
./emulators/edt.el
./energize/energize-load.el
./energize/write-file.el
./eos/eos.el
./eos/loaddefs-eos.el
./eos/sun-eos.el
./hyperbole/hsite-ex.el
./hyperbole/hsite.el
./hyperbole/hsys-www.el
./hyperbole/hui-em19-b.el
./hyperbole/hui-ep-but.el
./hyperbole/hui-epV4-b.el
./hyperbole/hui-xe-but.el
./hyperbole/kotl/kprop-em.el
./hyperbole/kotl/kview.el
./ilisp/comint-v18.el
./ilisp/completer.new.el
./ilisp/completer.no-fun.el
./ilisp/ilcompat.el
./ilisp/ilfsf18.el
./ilisp/ilfsf19.el
./ilisp/ilisp-bat.el
./ilisp/ilisp-bug.el
./ilisp/ilisp-chs.el
./ilisp/ilisp-cpat.el
./ilisp/ilisp-mak.el
./ilisp/ilisp-menu.el
./ilisp/ilisp-mnb.el
./ilisp/ilisp-s2c.el
./ilisp/ilisp-src.el
./ilisp/ilisp.el
./ilisp/illuc19.el
./ilisp/ilxemacs.el
./mel/mel-b.el
./mel/mel-g.el
./mel/mel-q.el
./mel/mel-u.el
./mel/mel.el
./mu/latex-math-symbol.el
./oobr/hash-test.el
./prim/loadup-el.el
./prim/loadup.el
./prim/update-elc.el
./sunpro/sunpro-load.el
./tl/bitmap.el
./tl/cless.el
./tl/emu-e19.el
./tl/emu-orig.el
./tl/emu-x20.el
./tl/emu-xemacs.el
./tl/emu.el
./tl/file-detect.el
./tl/filename.el
./tl/mu-bbdb.el
./tl/mu-cite.el
./tl/mu-comment.el
./tl/mu-replace.el
./tl/range.el
./tl/richtext.el
./tl/std11-parse.el
./tl/std11.el
./tl/texi-util.el
./tl/tinyrich.el
./tl/tl-822.el
./tl/tl-atype.el
./tl/tl-list.el
./tl/tl-misc.el
./tl/tl-num.el
./tl/tl-seq.el
./tl/tl-str.el
./tl/tu-comment.el
./tl/tu-replace.el
./tm/gnus-art-mime.el
./tm/gnus-charset.el
./tm/gnus-mime-old.el
./tm/gnus-mime.el
./tm/gnus-msg-mime.el
./tm/gnus-sum-mime.el
./tm/message-mime.el
./tm/mime-setup.el
./tm/sc-setup.el
./tm/signature.el
./tm/tm-bbdb.el
./tm/tm-def.el
./tm/tm-edit-mc.el
./tm/tm-edit.el
./tm/tm-ew-d.el
./tm/tm-ew-e.el
./tm/tm-file.el
./tm/tm-ftp.el
./tm/tm-gd3.el
./tm/tm-gnus.el
./tm/tm-gnus4.el
./tm/tm-gnus5.el
./tm/tm-html.el
./tm/tm-image.el
./tm/tm-latex.el
./tm/tm-mail.el
./tm/tm-mh-e.el
./tm/tm-orig.el
./tm/tm-parse.el
./tm/tm-partial.el
./tm/tm-pgp.el
./tm/tm-play.el
./tm/tm-rich.el
./tm/tm-rmail.el
./tm/tm-setup.el
./tm/tm-sgnus.el
./tm/tm-tar.el
./tm/tm-text.el
./tm/tm-view.el
./tm/tm-vm.el
./tm/tmh-comp.el
./url/docomp.el
./url/url-sysdp.el
./vm/vm-byteopts.el
./vm/vm-search18.el
./vm/vm-search19.el
./w3/docomp.el
./w3/w3-sysdp.el
./w3/w3-xem20.el


