aboutsummaryrefslogtreecommitdiff
path: root/mac
diff options
context:
space:
mode:
authormarius a. eriksen <marius.eriksen@gmail.com>2014-12-23 20:45:35 -0800
committerRuss Cox <rsc@google.com>2015-06-03 15:26:27 +0000
commitd52bdd3356137cf67a3458fdee5c94fdec4337e1 (patch)
tree99f1d4baf8e13448992224b7995e675cd19c4b10 /mac
parent25822e8da338df2c15959bd8d347f230dc2b2d89 (diff)
downloadplan9port-d52bdd3356137cf67a3458fdee5c94fdec4337e1.tar.gz
plan9port-d52bdd3356137cf67a3458fdee5c94fdec4337e1.tar.bz2
plan9port-d52bdd3356137cf67a3458fdee5c94fdec4337e1.zip
devdraw: plumb drag-n-dropped files
Change-Id: I7585870aee57c7482ebdd19c117be7982123ce79 Reviewed-on: https://plan9port-review.googlesource.com/1130 Reviewed-by: Russ Cox <rsc@google.com>
Diffstat (limited to 'mac')
-rwxr-xr-xmac/Plumb.app/Contents/MacOS/plumb11
1 files changed, 1 insertions, 10 deletions
diff --git a/mac/Plumb.app/Contents/MacOS/plumb b/mac/Plumb.app/Contents/MacOS/plumb
index f98cd2e7..850ec0e0 100755
--- a/mac/Plumb.app/Contents/MacOS/plumb
+++ b/mac/Plumb.app/Contents/MacOS/plumb
@@ -10,14 +10,5 @@ IFS=$'\n'
for file in $($bin/macargv)
do
- # Blanks are problematic in filenames: just plumb
- # the file's content.
- if echo "$file" | grep -q " "
- then
- base=$(basename "$file" | sed 's/ /_/g')
- attr="action=showdata filename=/BadName/$base"
- cat $file | "$bin/plumb" -i -d edit -a "$attr"
- else
- "$bin/plumb" -d edit "$file"
- fi
+ $bin/macedit "$file"
done