Annotation of openbsd/fill_chroot/perl_to_chroot, Revision 1.1
1.1 ! andrew 1: #!/bin/sh
! 2: # $RedRiver$
! 3:
! 4: PERLLIBS=`ldd /usr/bin/perl | cut -d ' ' -f 7 | sed -e 's/:$//'`
! 5: CHROOT=/home/andrew/www
! 6:
! 7: for f in ${PERLLIBS} /usr/libdata/perl5/ /usr/local/libdata/perl5; do
! 8: DESTDIR=${CHROOT}`dirname ${f}`
! 9:
! 10: if [ ! -d ${DESTDIR} ]; then
! 11: echo mkdir -p ${DESTDIR}
! 12: mkdir -p ${DESTDIR}
! 13: fi
! 14:
! 15: RECURSE=
! 16: if [ -d ${f} ]; then
! 17: RECURSE=-r
! 18: fi
! 19:
! 20: echo cp ${RECURSE} ${f} ${DESTDIR}
! 21: cp ${RECURSE} ${f} ${DESTDIR}
! 22:
! 23: done
! 24:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>