From 37f7b113fb46cc8121b5d8a2a81655d8e68c120f Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Tue, 6 May 2008 09:37:26 +0100 Subject: [PATCH] default dinstall copies files back to $PWD --- mbuild.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/mbuild.sh b/mbuild.sh index 99ffb2a..1ea10b6 100755 --- a/mbuild.sh +++ b/mbuild.sh @@ -11,11 +11,10 @@ BUILDDIR="$(mktemp -dt mbuild.XXXXXXXX)" trap "cd / && rm -R '$BUILDDIR'" 0 BUNDLE_DIR="${TMPDIR:-/tmp}" +TARGET_DIR="$PWD" dinstall() { - echo "Would install into $1:" - for file in $(dcmd echo "$2"); do - echo " $file" - done + echo "Copying files destined for $1 back to $TARGET_DIR..." + dcmd cp -v "$2" "$TARGET_DIR" } KEYID= -- 2.39.5