Use relative paths inside ecompressdir in order to avoid 'Argument list too long...
authorZac Medico <zmedico@gentoo.org>
Fri, 13 Apr 2007 05:43:48 +0000 (05:43 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 13 Apr 2007 05:43:48 +0000 (05:43 -0000)
svn path=/main/trunk/; revision=6388

bin/ecompressdir

index 22ab4310cc741675068441ff0cec27611ee76717..590fae75b7c7a02f7b94c047c02e85063826bb2e 100755 (executable)
@@ -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