summaryrefslogtreecommitdiff
path: root/merge-fuse-batch
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2016-11-26 12:43:05 +0100
committerPatrick Simianer <p@simianer.de>2016-11-26 12:43:05 +0100
commitc6f314de958e082e55bbba79ba4d59c226deed22 (patch)
tree98e5896e3a2cf4ac1a38c5cedc344baf33065c3f /merge-fuse-batch
parent162187608bbaf1f79d38c88803754c8e58359129 (diff)
merge
Diffstat (limited to 'merge-fuse-batch')
-rwxr-xr-xmerge-fuse-batch13
1 files changed, 13 insertions, 0 deletions
diff --git a/merge-fuse-batch b/merge-fuse-batch
new file mode 100755
index 0000000..1f21c55
--- /dev/null
+++ b/merge-fuse-batch
@@ -0,0 +1,13 @@
+#!/usr/bin/env ruby
+
+BILDROEHRE=File.dirname(__FILE__)
+DIR=ARGV[0]
+i = 0
+while line = STDIN.gets
+ args = line.strip.split.join (" -f #{DIR}")
+ cmd = "#{BILDROEHRE}/merge -F -o mertens-fused-#{i}.jpg #{args}"
+ STDERR.write "#{cmd}\n"
+ `#{cmd}`
+ i += 1
+end
+