diff options
author | Jim Blandy <jimb@redhat.com> | 1993-03-18 23:06:04 +0000 |
---|---|---|
committer | Jim Blandy <jimb@redhat.com> | 1993-03-18 23:06:04 +0000 |
commit | daa08611698a1d10705f919012820b4b270abb04 (patch) | |
tree | 97c4cedd0405879513d06897480af17f8e7ee31e /make-dist | |
parent | ad2707fa2fc3602eafcf32fd6df544134839439e (diff) | |
download | emacs-daa08611698a1d10705f919012820b4b270abb04.tar.gz |
* make-dist: Use gzip, if we can find it.
Diffstat (limited to 'make-dist')
-rwxr-xr-x | make-dist | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/make-dist b/make-dist index 41631f2f5e6..e7a00cd9a5f 100755 --- a/make-dist +++ b/make-dist @@ -253,8 +253,22 @@ if [ "${newer}" ]; then fi if [ "${make_tar}" = yes ]; then + echo "Looking for gzip." + temppath=`echo $PATH | sed 's/^:/.:/ + s/::/:.:/g + s/:$/:./ + s/:/ /g'` + default_compress=`( + for dir in ${temppath}; do + if [ -f ${dir}/gzip ]; then echo 'gzip --best'; exit 0; fi + done + echo compress + )` echo "Creating tar file." - (cd ${tempparent}; tar cvf - ${emacsname}) | compress > ${emacsname}.tar.Z + (cd ${tempparent} + tar cvf - ${emacsname}) \ + | ${default_compress} > ${emacsname}.tar.Z + ) fi if [ "${clean_up}" = yes ]; then |