exit 1
fi
-dir="${D}usr/share/doc/${PF}/${DOCDESTTREE}"
+dir="${D}/usr/share/doc/${PF}/${DOCDESTTREE}"
if [ ! -d "${dir}" ] ; then
install -d "${dir}"
fi
local mybindir
if [ -z "${1}" ]; then
if [ ! -z "${PREFIX}" ]; then
- mybindir="${PREFIX}bin"
+ mybindir="${PREFIX}/bin"
else
mybindir="/bin"
fi
local mydatadir
if [ -z "${1}" ]; then
if [ ! -z "${PREFIX}" ]; then
- mydatadir="${PREFIX}usr/share"
+ mydatadir="${PREFIX}/usr/share"
else
mydatadir=/usr/share
fi
local myinfodir
if [ -z "${1}" ]; then
if [ ! -z "${PREFIX}" ]; then
- myinfodir="${PREFIX}usr/share/info"
+ myinfodir="${PREFIX}/usr/share/info"
else
myinfodir=/usr/share/info
fi
local mymandir
if [ -z "${1}" ]; then
if [ ! -z "${PREFIX}" ]; then
- mymandir="${PREFIX}usr/share/man"
+ mymandir="${PREFIX}/usr/share/man"
else
mymandir=/usr/share/man
fi
local myprefix
if [ -z "${1}" ]; then
if [ ! -z "${PREFIX}" ]; then
- myprefix="${PREFIX}usr"
+ myprefix="${PREFIX}/usr"
else
myprefix=/usr
fi
local myconfdir
if [ -z "${1}" ]; then
if [ ! -z "${PREFIX}" ]; then
- myconfdir="${PREFIX}etc"
+ myconfdir="${PREFIX}/etc"
else
myconfdir=/etc
fi
local mylocalstatedir
if [ -z "${1}" ]; then
if [ ! -z "${PREFIX}" ]; then
- mylocalstatedir="${PREFIX}var/lib"
+ mylocalstatedir="${PREFIX}/var/lib"
else
mylocalstatedir="/var/lib"
fi
export DOCDESTTREE=""
else
export DOCDESTTREE="$1"
- if [ ! -d "${D}usr/share/doc/${PF}/${DOCDESTTREE}" ]; then
- install -d "${D}usr/share/doc/${PF}/${DOCDESTTREE}"
+ if [ ! -d "${D}/usr/share/doc/${PF}/${DOCDESTTREE}" ]; then
+ install -d "${D}/usr/share/doc/${PF}/${DOCDESTTREE}"
fi
fi
}
export PATH="${PREFIX}/usr/bin/ccache:${PATH}"
fi
- [ -z "${CCACHE_DIR}" ] && export CCACHE_DIR="@PREFIX/var/tmp/ccache"
+ [ -z "${CCACHE_DIR}" ] && export CCACHE_DIR="${PREFIX}/var/tmp/ccache"
addread "${CCACHE_DIR}"
addwrite "${CCACHE_DIR}"
# this should help to ensure that all (most?) shared libraries are executable
# and that all libtool scripts / static libraries are not executable
-for i in "${D}"opt/*/lib{,32,64} \
- "${D}"lib{,32,64} \
- "${D}"usr/lib{,32,64} \
- "${D}"usr/X11R6/lib{,32,64} ; do
+for i in "${D}"/opt/*/lib{,32,64} \
+ "${D}"/lib{,32,64} \
+ "${D}"/usr/lib{,32,64} \
+ "${D}"/usr/X11R6/lib{,32,64} ; do
[[ ! -d ${i} ]] && continue
for j in "${i}"/*.so.* "${i}"/*.so ; do
# /lib, we have to make sure we have a linker script in /usr/lib along side
# the static library, or gcc will utilize the static lib when linking :(.
# http://bugs.gentoo.org/4411
-for a in "${D}"usr/lib*/*.a ; do
+for a in "${D}"/usr/lib*/*.a ; do
s=${a%.a}.so
if [[ ! -e ${s} ]] ; then
s=${s%usr/*}${s##*/usr/}
done
# Make sure people don't store libtool files or static libs in /lib
-f=$(ls "${D}"lib*/*.{a,la} 2>/dev/null)
+f=$(ls "${D}"/lib*/*.{a,la} 2>/dev/null)
if [[ -n ${f} ]] ; then
echo -e "\n\aQA Notice: excessive files found in the / partition\a"
echo "${f}"
fi
# Verify that the libtool files don't contain bogus $D entries.
-for a in "${D}"usr/lib*/*.la ; do
+for a in "${D}"/usr/lib*/*.la ; do
s=${a##*/}
if grep -qs "${D}" "${a}" ; then
echo -e "\n\aQA Notice: ${s} appears to contain PORTAGE_TMPDIR paths\a"
if type -p scanelf > /dev/null ; then
# Run some sanity checks on shared libraries
-for d in "${D}"lib* "${D}"usr/lib* ; do
+for d in "${D}"/lib* "${D}"/usr/lib* ; do
f=$(scanelf -ByF '%S %p' "${d}"/lib*.so* | gawk '$2 == "" { print }')
if [[ -n ${f} ]] ; then
echo -e "\n\aQA Notice: the following shared libraries lack a SONAME\a"
# Distributed under the terms of the GNU General Public License v2
# $Id: /var/cvsroot/gentoo-src/portage/bin/prepalldocs,v 1.6 2004/10/04 13:56:50 vapier Exp $
-z="`find "${D}"usr/share/doc \( -type f -or -type l \) -not -name "*.gz" -not -name "*.js" 2>/dev/null`"
+z="`find "${D}"/usr/share/doc \( -type f -or -type l \) -not -name "*.gz" -not -name "*.js" 2>/dev/null`"
for y in ${z} ; do
if [ -L "${y}" ] ; then
# Distributed under the terms of the GNU General Public License v2
# $Id: /var/cvsroot/gentoo-src/portage/bin/prepallinfo,v 1.6 2004/10/04 13:56:50 vapier Exp $
-[ ! -d "${D}usr/share/info" ] && exit 0
+[ ! -d "${D}/usr/share/info" ] && exit 0
echo "info:"
prepinfo
# $Id: /var/cvsroot/gentoo-src/portage/bin/prepallman,v 1.10 2004/10/04 13:56:50 vapier Exp $
echo "man:"
-for x in "${D}"opt/*/man "${D}"usr/share/man "${D}"usr/local/man "${D}"usr/X11R6/man ; do
+for x in "${D}"/opt/*/man "${D}"/usr/share/man "${D}"/usr/local/man "${D}"/usr/X11R6/man ; do
if [ -d "${x}" ]
then
prepman "`echo "${x}" | sed -e "s:${D}::" -e "s:/man[/]*$::"`"
fi
if [ -z "$1" ] ; then
- z="${D}usr/${CONF_LIBDIR}"
+ z="${D}/usr/${CONF_LIBDIR}"
else
z="${D}$1/${CONF_LIBDIR}"
fi
# $Id: /var/cvsroot/gentoo-src/portage/bin/prepman,v 1.10.2.3 2005/05/29 12:40:08 jstubbs Exp $
if [ -z "$1" ] ; then
- z="${D}usr/share/man"
+ z="${D}/usr/share/man"
else
z="${D}$1/man"
fi