summaryrefslogtreecommitdiff
path: root/merge-fuse-batch
blob: fa29893ed04bb99d8547ecd87937c631ae1881b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env ruby

BILDROEHRE=File.dirname(__FILE__)
DIR=ARGV[0]
i = 0
while line = STDIN.gets
  args = line.strip.split.join (" -f #{DIR}")
  is = i.to_s.rjust(3, "0")
  cmd = "#{BILDROEHRE}/merge -F -o mertens-fused-#{is}.jpg #{args}"
  STDERR.write "#{cmd}\n"
  `#{cmd}`
  i += 1
end