add leading slash for doinfo
authorKito <kito@gentoo.org>
Sun, 19 Feb 2006 22:29:48 +0000 (22:29 -0000)
committerKito <kito@gentoo.org>
Sun, 19 Feb 2006 22:29:48 +0000 (22:29 -0000)
svn path=/main/branches/prefix/; revision=2749

bin/doinfo

index cdec34ef7f501857ef84cb6141eb93f42fdd7780..497ee3144da3b10e0420c742ecd99e2118863599 100755 (executable)
@@ -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