From xemacs-m  Wed Feb 12 23:38:40 1997
Received: from bayserve.net (bay1.bayserve.net [206.148.244.200])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id XAA27047
	for <xemacs-beta@xemacs.org>; Wed, 12 Feb 1997 23:38:39 -0600 (CST)
Received: from localhost (jmiller@localhost) by  bayserve.net (8.7.2/8.7.2) with SMTP id AAA02292 for <xemacs-beta@xemacs.org>; Thu, 13 Feb 1997 00:43:27 -0500 (EST)
Date: Thu, 13 Feb 1997 00:43:27 -0500 (EST)
From: Jeff Miller <jmiller@bay1.bayserve.net>
Reply-To: Jeff Miller <jmiller@bay1.bayserve.net>
To: beta-list <xemacs-beta@xemacs.org>
Subject: Re: compressed .el files
In-Reply-To: <m2hgjhh3ea.fsf@altair.xemacs.org>
Message-ID: <Pine.SUN.3.95.970213001443.29872B-100000@bay1.bayserve.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII



On 12 Feb 1997, Steven L Baur wrote:

> be good to submit a patch for the toplevel Makefile to print out a
> message at the end of installation, ``if you wish to compress your
> installation, see ...'' or some such.

ok, here is my stab at a script, though it's mostly lifted from Mark
Borges example.  It was a bit cleaner than my first attempt.

#!/bin/sh

#
#
echo Compressing .el files in $1
for i in `find $1 -type f -name \*.el -print`; do
  [ -s ${i}c ] && echo  $i && gzip -f9 $i
done
echo Done


I have mixed feelings about leaving the echo $i in there.  It's nice to
see what's going on but it does generate a lot of screen output.

Here is the patch to Makefile.in as well.  Probably will need fine-tuning
on the words echoed, but it's a start.

--- Makefile.in.orig    Sun Feb  2 11:52:07 1997
+++ Makefile.in Thu Feb 13 00:05:51 1997
@@ -394,6 +394,16 @@
          ${INSTALL_DATA} ${srcdir}/etc/$${page}.1
${mandir}/$${page}${manext} ; \
          chmod 0644 ${mandir}/$${page}${manext} ; \
        done
+       echo If you would like to save approximately 14M of disk space, do
+       echo make gzip-el
+       echo or
+       echo you may run "lib-src/gzip-el lispdir " from the command line.
+       echo lispdir is where the lisp files were installed, i.e., 
+       echo /usr/local/lib/xemacs-20.0/lisp
+
+gzip-el:
+       lib-src/gzip-el ${lispdir}
+
 
 MAKEPATH=./lib-src/make-path
 ### Build all the directories we're going to install XEmacs in.    Since


I also verified that I do indeed save ~14 Meg.


