From: martin f. krafft Date: Tue, 6 May 2008 08:37:26 +0000 (+0100) Subject: default dinstall copies files back to $PWD X-Git-Url: https://git.madduck.net/code/mbuild.git/commitdiff_plain/37f7b113fb46cc8121b5d8a2a81655d8e68c120f?hp=c574dadaa5a6754979188bbed83eb734c6c62d49 default dinstall copies files back to $PWD --- 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=