annotate lib-src/gzip-el.sh @ 398:74fd4e045ea6 r21-2-29

Import from CVS: tag r21-2-29
author cvs
date Mon, 13 Aug 2007 11:13:30 +0200
parents bfd6434d15b3
children 697ef44129c6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
30
ec9a17fef872 Import from CVS: tag r19-15b98
cvs
parents:
diff changeset
1 #! /bin/sh
ec9a17fef872 Import from CVS: tag r19-15b98
cvs
parents:
diff changeset
2 ### gzip-el.sh --- compress superfluous installed source lisp
ec9a17fef872 Import from CVS: tag r19-15b98
cvs
parents:
diff changeset
3
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 30
diff changeset
4 # Author: Jeff Miller <jmiller@smart.net>
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 181
diff changeset
5 # Author: Hrvoje Niksic <hniksic@xemacs.org>
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 181
diff changeset
6 # Maintainer: Steve Baur <steve@xemacs.org>
30
ec9a17fef872 Import from CVS: tag r19-15b98
cvs
parents:
diff changeset
7 # Created: 13 Feb 1997
ec9a17fef872 Import from CVS: tag r19-15b98
cvs
parents:
diff changeset
8 # Version: 1.0
ec9a17fef872 Import from CVS: tag r19-15b98
cvs
parents:
diff changeset
9 # Keywords: internal
ec9a17fef872 Import from CVS: tag r19-15b98
cvs
parents:
diff changeset
10
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 177
diff changeset
11 # This file is part of XEmacs.
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 177
diff changeset
12
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 177
diff changeset
13 # XEmacs is free software; you can redistribute it and/or modify it
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 177
diff changeset
14 # under the terms of the GNU General Public License as published by
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 177
diff changeset
15 # the Free Software Foundation; either version 2, or (at your option)
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 177
diff changeset
16 # any later version.
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 177
diff changeset
17
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 177
diff changeset
18 # XEmacs is distributed in the hope that it will be useful, but
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 177
diff changeset
19 # WITHOUT ANY WARRANTY; without even the implied warranty of
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 177
diff changeset
20 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 177
diff changeset
21 # General Public License for more details.
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 177
diff changeset
22
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 177
diff changeset
23 # You should have received a copy of the GNU General Public License
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 177
diff changeset
24 # along with XEmacs; see the file COPYING. If not, write to
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 177
diff changeset
25 # the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 177
diff changeset
26 # Boston, MA 02111-1307, USA.
30
ec9a17fef872 Import from CVS: tag r19-15b98
cvs
parents:
diff changeset
27
ec9a17fef872 Import from CVS: tag r19-15b98
cvs
parents:
diff changeset
28 #
ec9a17fef872 Import from CVS: tag r19-15b98
cvs
parents:
diff changeset
29 #
ec9a17fef872 Import from CVS: tag r19-15b98
cvs
parents:
diff changeset
30 echo Compressing .el files in "$1"...
ec9a17fef872 Import from CVS: tag r19-15b98
cvs
parents:
diff changeset
31
ec9a17fef872 Import from CVS: tag r19-15b98
cvs
parents:
diff changeset
32 find "$1" -type f -name "*.el" -print |
ec9a17fef872 Import from CVS: tag r19-15b98
cvs
parents:
diff changeset
33 while read file; do
ec9a17fef872 Import from CVS: tag r19-15b98
cvs
parents:
diff changeset
34 [ -s "${file}c" ] && echo "$file" && gzip -f9 "$file"
ec9a17fef872 Import from CVS: tag r19-15b98
cvs
parents:
diff changeset
35 done
ec9a17fef872 Import from CVS: tag r19-15b98
cvs
parents:
diff changeset
36
ec9a17fef872 Import from CVS: tag r19-15b98
cvs
parents:
diff changeset
37 echo Compressing .el files in "$1"...done.