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:
parent
35f56f9681
commit
e257316560
16
make-dist
16
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
|
||||
|
Loading…
Reference in New Issue
Block a user