From ae214443f004c3ba11d9fba148fb4e6a0f50c4d4 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 13 Apr 2007 05:43:48 +0000 Subject: [PATCH] Use relative paths inside ecompressdir in order to avoid 'Argument list too long' errors with large file sets (observed when installing sys-apps/man-pages). svn path=/main/trunk/; revision=6388 --- bin/ecompressdir | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/ecompressdir b/bin/ecompressdir index 22ab4310c..590fae75b 100755 --- a/bin/ecompressdir +++ b/bin/ecompressdir @@ -102,6 +102,9 @@ for dir in "$@" ; do vecho "${0##*/}: ${dir#${D}} does not exist!" continue fi + cd "${dir}" + actual_dir=${dir} + dir=. # use relative path to avoid 'Argument list too long' errors # hide all the stuff we want to skip hide_skip_dirs "${dir}" @@ -122,7 +125,7 @@ for dir in "$@" ; do # now lets do our work [[ -z ${suffix} ]] && continue - vecho "${0##*/}: $(ecompress --bin) ${dir#${D}}" + vecho "${0##*/}: $(ecompress --bin) ${actual_dir#${D}}" funk_up_dir "compress" "${suffix}" "ecompress" # finally, restore the skipped stuff -- 2.26.2