diff options
author | phk <phk@FreeBSD.org> | 2008-12-16 15:05:52 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2008-12-16 15:05:52 +0000 |
commit | f77e2d29f5d4525d4d638f07c17d5a342dd2569b (patch) | |
tree | d6d34a08cf8da5e3b8db7ba808ea7b2678fc48b1 /tools | |
parent | 662640d1ee6a45b933d10e23b9e3cbb9d5bf0d62 (diff) | |
download | FreeBSD-src-f77e2d29f5d4525d4d638f07c17d5a342dd2569b.zip FreeBSD-src-f77e2d29f5d4525d4d638f07c17d5a342dd2569b.tar.gz |
Make it possible to cherry-pick packages out of a directory.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/tools/nanobsd/nanobsd.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/tools/nanobsd/nanobsd.sh b/tools/tools/nanobsd/nanobsd.sh index d1041a2..70c0c58 100644 --- a/tools/tools/nanobsd/nanobsd.sh +++ b/tools/tools/nanobsd/nanobsd.sh @@ -47,6 +47,7 @@ NANO_TOOLS=tools/tools/nanobsd # Where cust_pkg() finds packages to install NANO_PACKAGE_DIR=${NANO_SRC}/${NANO_TOOLS}/Pkg +NANO_PACKAGE_LIST="*" # Object tree directory # default is subdir of /usr/obj @@ -592,7 +593,11 @@ cust_pkg () ( # Copy packages into chroot mkdir -p ${NANO_WORLDDIR}/Pkg - cp ${NANO_PACKAGE_DIR}/* ${NANO_WORLDDIR}/Pkg + ( + cd ${NANO_PACKAGE_DIR} + find ${NANO_PACKAGE_LIST} -print | + cpio -dumpv ${NANO_WORLDDIR}/Pkg + ) # Count & report how many we have to install todo=`ls ${NANO_WORLDDIR}/Pkg | wc -l` |