summaryrefslogtreecommitdiff
path: root/merge-fuse-batch
diff options
context:
space:
mode:
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
+