Make the ecompressdir vecho output show a leading / on
authorZac Medico <zmedico@gentoo.org>
Sat, 29 Dec 2007 17:58:18 +0000 (17:58 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 29 Dec 2007 17:58:18 +0000 (17:58 -0000)
the directory path. Thanks to armin76.
(trunk r9110:9112)

svn path=/main/branches/2.1.2/; revision=9113

bin/ecompressdir

index 8b1ab17491dda3ba713095e805a12b3f8e163b3f..8f5bff1b95ff7b3d6663b191fdc900d1d939b689 100755 (executable)
@@ -46,9 +46,10 @@ funk_up_dir() {
 ret=0
 
 for dir in "$@" ; do
+       dir=${dir#/}
        dir="${D}${dir}"
        if [[ ! -d ${dir} ]] ; then
-               vecho "${0##*/}: ${dir#${D}} does not exist!"
+               vecho "${0##*/}: /${dir#${D}} does not exist!"
                continue
        fi
        cd "${dir}"
@@ -66,7 +67,7 @@ for dir in "$@" ; do
 
        # now lets do our work
        [[ -z ${suffix} ]] && continue
-       vecho "${0##*/}: $(ecompress --bin) ${actual_dir#${D}}"
+       vecho "${0##*/}: $(ecompress --bin) /${actual_dir#${D}}"
        funk_up_dir "compress" "${suffix}" "ecompress"
 done