summaryrefslogtreecommitdiff
path: root/merge-fuse-batch
blob: 1f21c55d6cf45f29af951486ed1a16a43b5e375f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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