=================================================================== RCS file: /cvs/openbsd/fill_chroot/fill_chroot,v retrieving revision 1.20 retrieving revision 1.21 diff -u -r1.20 -r1.21 --- openbsd/fill_chroot/fill_chroot 2012/06/10 04:29:42 1.20 +++ openbsd/fill_chroot/fill_chroot 2019/11/04 01:13:18 1.21 @@ -1,9 +1,10 @@ #!/bin/sh -# $AFresh1: fill_chroot,v 1.18 2011/08/09 00:13:54 andrew Exp $ +# $AFresh1: fill_chroot,v 1.20 2012/06/10 03:29:42 andrew Exp $ CHROOT=${CHROOT:=/home/andrew/www} CHROOT=`echo $CHROOT | sed -e 's,/*$,,'` export CHROOT +BINDIR=$( dirname $( readlink -f $0 ) ) _find="-type f -a (" _find="${_find} -name *.so.* -o -name *.so" @@ -98,7 +99,7 @@ _find="${_find} )" echo Installing dependencies into ${CHROOT} find ${CHROOT}/usr ${_find} -print0 | - xargs -0 find_depends | \ + xargs -0 "${BINDIR}"/find_depends | \ sort -u | \ { local _f @@ -109,4 +110,4 @@ } echo Fixing ldconfig \(/var/run/ld.so.hints\) -fix_ldconfig +"${BINDIR}"/fix_ldconfig