# HG changeset patch # User Jim Blandy # Date 732495964 0 # Node ID fe5302520efd7566c26aed16533788f9d5e41569 # Parent 9793d8654e235f72f33331a8c8e060aef728666d * make-dist: Use gzip, if we can find it. diff -r 9793d8654e23 -r fe5302520efd make-dist --- a/make-dist Thu Mar 18 22:50:00 1993 +0000 +++ b/make-dist Thu Mar 18 23:06:04 1993 +0000 @@ -253,8 +253,22 @@ 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