annotate lib-src/gzip-el.sh @ 30:ec9a17fef872 r19-15b98

Import from CVS: tag r19-15b98
author cvs
date Mon, 13 Aug 2007 08:52:29 +0200
parents
children 6075d714658b
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
ec9a17fef872 Import from CVS: tag r19-15b98
cvs
parents:
diff changeset
4 # Author: Jeff Miller <jmiller@bay1.bayserve.net>
ec9a17fef872 Import from CVS: tag r19-15b98
cvs
parents:
diff changeset
5 # Author: Hrvoje Niksic <hniksic@srce.hr>
ec9a17fef872 Import from CVS: tag r19-15b98
cvs
parents:
diff changeset
6 # Maintainer: Steve Baur <steve@altair.xemacs.org>
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
ec9a17fef872 Import from CVS: tag r19-15b98
cvs
parents:
diff changeset
11
ec9a17fef872 Import from CVS: tag r19-15b98
cvs
parents:
diff changeset
12 #
ec9a17fef872 Import from CVS: tag r19-15b98
cvs
parents:
diff changeset
13 #
ec9a17fef872 Import from CVS: tag r19-15b98
cvs
parents:
diff changeset
14 echo Compressing .el files in "$1"...
ec9a17fef872 Import from CVS: tag r19-15b98
cvs
parents:
diff changeset
15
ec9a17fef872 Import from CVS: tag r19-15b98
cvs
parents:
diff changeset
16 find "$1" -type f -name "*.el" -print |
ec9a17fef872 Import from CVS: tag r19-15b98
cvs
parents:
diff changeset
17 while read file; do
ec9a17fef872 Import from CVS: tag r19-15b98
cvs
parents:
diff changeset
18 [ -s "${file}c" ] && echo "$file" && gzip -f9 "$file"
ec9a17fef872 Import from CVS: tag r19-15b98
cvs
parents:
diff changeset
19 done
ec9a17fef872 Import from CVS: tag r19-15b98
cvs
parents:
diff changeset
20
ec9a17fef872 Import from CVS: tag r19-15b98
cvs
parents:
diff changeset
21 echo Compressing .el files in "$1"...done.