comparison make-dist @ 2253:fe5302520efd

* make-dist: Use gzip, if we can find it.
author Jim Blandy <jimb@redhat.com>
date Thu, 18 Mar 1993 23:06:04 +0000
parents 0b629ab3f06a
children 9f90d3406b46
comparison
equal deleted inserted replaced
2252:9793d8654e23 2253:fe5302520efd
251 ## them with. 251 ## them with.
252 find ${tempparent} \( -name '*.elc' -o ! -newer ${newer} \) -exec rm -f {} \; 252 find ${tempparent} \( -name '*.elc' -o ! -newer ${newer} \) -exec rm -f {} \;
253 fi 253 fi
254 254
255 if [ "${make_tar}" = yes ]; then 255 if [ "${make_tar}" = yes ]; then
256 echo "Looking for gzip."
257 temppath=`echo $PATH | sed 's/^:/.:/
258 s/::/:.:/g
259 s/:$/:./
260 s/:/ /g'`
261 default_compress=`(
262 for dir in ${temppath}; do
263 if [ -f ${dir}/gzip ]; then echo 'gzip --best'; exit 0; fi
264 done
265 echo compress
266 )`
256 echo "Creating tar file." 267 echo "Creating tar file."
257 (cd ${tempparent}; tar cvf - ${emacsname}) | compress > ${emacsname}.tar.Z 268 (cd ${tempparent}
269 tar cvf - ${emacsname}) \
270 | ${default_compress} > ${emacsname}.tar.Z
271 )
258 fi 272 fi
259 273
260 if [ "${clean_up}" = yes ]; then 274 if [ "${clean_up}" = yes ]; then
261 echo "Cleaning up the staging directory." 275 echo "Cleaning up the staging directory."
262 rm -rf ${tempparent} 276 rm -rf ${tempparent}