mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-15 23:50:44 +00:00
17 lines
275 B
Plaintext
17 lines
275 B
Plaintext
|
#! /bin/sh
|
||
|
#
|
||
|
# copy_files listfile m3dir sysdir wrkdir
|
||
|
|
||
|
if [ $# -ne 4 ]; then
|
||
|
echo "Usage: $0 listfile m3dir sysdir wrkdir" >&2
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
listfile=$1
|
||
|
m3dir=$2
|
||
|
sysdir=$3
|
||
|
wrkdir=$4
|
||
|
|
||
|
sed "s,^${m3dir}/,," ${listfile} |\
|
||
|
(cd ${sysdir}; cpio -pdmu ${wrkdir}/${m3dir})
|