1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-27 07:37:33 +00:00

* make-dist: Use gzip, if we can find it.

This commit is contained in:
Jim Blandy 1993-03-18 23:06:04 +00:00
parent 35f56f9681
commit e257316560

View File

@ -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