fab modulesを自動化するシェルスクリプト

cutoutrml

#!/bin/sh
if [ $# -ne 1 ]; then
    echo "usage: cutoutrml <file.png>"
    exit 1
fi
png_path $1 "fab_mod.path" 1.1 0.79 1 0.5 0.5 0.5 -0.6 -1.7 0.6 
path_rml "fab_mod.path" "cutout.rml" 4 1 1.0 0 0 
rm fab_mod.path

millrml

#!/bin/sh
if [ $# -ne 1 ];then
  echo "usage: millrml <file.png>"
  exit 1
fi

png_path $1 "fab_mod.path" 1.1 0.4 1 0.5 0.5 0.5 -0.1
path_rml "fab_mod.path" "milltrace.rml" 4 1 1.0 0 0 
rm fab_mod.path