From: Kito Date: Sun, 19 Feb 2006 22:29:48 +0000 (-0000) Subject: add leading slash for doinfo X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=5842dc8f6e9004f7cce6c1d43e356baccc870651;p=portage.git add leading slash for doinfo svn path=/main/branches/prefix/; revision=2749 --- diff --git a/bin/doinfo b/bin/doinfo index cdec34ef7..497ee3144 100755 --- a/bin/doinfo +++ b/bin/doinfo @@ -7,14 +7,14 @@ if [ ${#} -lt 1 ] ; then echo "doinfo: at least one argument needed" exit 1 fi -if [ ! -d "${D}usr/share/info" ] ; then - install -d "${D}usr/share/info" +if [ ! -d "${D}/usr/share/info" ] ; then + install -d "${D}/usr/share/info" fi for x in "$@" ; do if [ -e "${x}" ] ; then - install -m0644 "${x}" "${D}usr/share/info" - gzip -f -9 "${D}usr/share/info/${x##*/}" + install -m0644 "${x}" "${D}/usr/share/info" + gzip -f -9 "${D}/usr/share/info/${x##*/}" else echo "doinfo: ${x} does not exist" fi