[BACK]Return to fill_chroot CVS log [TXT][DIR] Up to [local] / openbsd / fill_chroot

File: [local] / openbsd / fill_chroot / fill_chroot (download)

Revision 1.2, Mon Jan 16 21:03:12 2006 UTC (18 years, 4 months ago) by andrew
Branch: MAIN
Changes since 1.1: +2 -2 lines

use pax instead of cp, it keeps permissions and the like.

#!/bin/sh
# $RedRiver: fill_chroot,v 1.1 2005/12/21 19:14:12 andrew Exp $

CHROOT=${CHROOT:=/home/andrew/www}
export CHROOT

perl_to_chroot
mkdir -p ${CHROOT}/usr/local/lib

find ${CHROOT} -name *.so* | xargs find_depends | \
     sort -u | xargs -I {} pax -r -w -L -p e {} ${CHROOT}

fix_ldconfig