projects
/
cloudstore.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59f8ddb
)
send_file gearman API
author
Dobrica Pavlinusic
<dpavlin@rsync1>
Tue, 15 Nov 2011 17:33:40 +0000
(18:33 +0100)
committer
Dobrica Pavlinusic
<dpavlin@rsync1>
Tue, 15 Nov 2011 17:33:40 +0000
(18:33 +0100)
gearman/send_file
[new file with mode: 0755]
patch
|
blob
diff --git a/gearman/send_file
b/gearman/send_file
new file mode 100755
(executable)
index 0000000..
a8fd821
--- /dev/null
+++ b/
gearman/send_file
@@ -0,0
+1,12
@@
+#!/bin/sh
+
+IFS='#'
+while read from to ; do
+ target_dir=`dirname $to`
+
+ if [ ! -e $target_dir ] ; then
+ eval mkdir -p $target_dir
+ fi
+
+ eval ln -v $from $to
+done