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

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

Revision 1.8, Tue Oct 21 19:08:31 2008 UTC (15 years, 8 months ago) by andrew
Branch: MAIN
Changes since 1.7: +2 -3 lines

don't copy perl in twice, no reason now that find_depends returns the file we were looking at as well.

#!/bin/sh
# $RedRiver: perl_to_chroot,v 1.7 2008/09/16 22:14:04 andrew Exp $

CHROOT=${CHROOT:=/var/www}

for f in `find_depends /usr/bin/perl` \
        /usr/libdata/perl5 \
        /usr/local/libdata/perl5 \
        ; do

  echo pax -r -w -L -p e ${f} ${CHROOT}
  pax -r -w -L -p e ${f} ${CHROOT}

done