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

BILDROEHRE=File.dirname(__FILE__)
DIR=ARGV[0]

i = 0
while line = STDIN.gets
  args = " -f #{DIR}"
  args += line.strip.split.join (" -f #{DIR}")
  is = i.to_s.rjust(3, "0")
  cmd = "bash -c 'LD_LIBRARY_PATH=~/.local/lib:$LD_LIBRARY_PATH #{BILDROEHRE}/merge -F -o mertens-fused-#{is}.jpg #{args}'"
  STDERR.write "#{cmd}\n"
  `#{cmd}`
  i += 1
end