From a21dc30ec981ab1a4ad0b8d7cae05bf1a980f270 Mon Sep 17 00:00:00 2001 From: CyberLeo Date: Sat, 13 Feb 2010 17:13:04 -0600 Subject: [PATCH] script/gentree: full pathnames are not needed in progress notes --- script/gentree | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/script/gentree b/script/gentree index 6681a4e..c0db887 100755 --- a/script/gentree +++ b/script/gentree @@ -107,7 +107,7 @@ do_packages() { if [ -d "${pkgs}" -a "$(ls -1 "${pkgs}" | wc -l)" -gt 0 ] then count="$(ls -1 "${pkgs}" | wc -l)" - log Install ${count} packages from "${pkgs}" + log Install ${count} packages from "${pkgs##${base}/}" chk mkdir -p "${sroot}/pkg" ( cd "${pkgs}" && find . | cpio -p --link "${sroot}/pkg" ) || chk chk chroot "${sroot}" /bin/sh -c 'cd /pkg; exec pkg_add -F *' @@ -116,7 +116,7 @@ do_packages() { } do_patch() { - log Apply patches from "${patch}" + log Apply patches from "${patch##${base}/}" for file in "${patch}"/* do note "... $(basename "${file}")" @@ -130,7 +130,7 @@ do_patch() { } do_overlay() { - log Apply overlay from "${overlay}" + log Apply overlay from "${overlay##${base}/}" [ -d "${overlay}" ] || return ( cd "${overlay}" && find . | cpio -p "${sroot}" ) || chk } -- 2.42.0