make_module.sh (344B)
1 #!/bin/bash 2 3 set -e 4 5 MODULE=$1 6 HP=$2 7 8 if [ "x$MODULE" == "x" ] || [ "x$HP" == "x" ] 9 then 10 echo "Usage: $0 <module name> <width in HP>" 1>&2 11 exit 1 12 fi 13 14 ./scripts/svg_make_stub.rb --module --hp=$HP $MODULE 15 ./scripts/svg_preprocess.rb ./res-src/$MODULE-src.svg 16 ./scripts/svg_render.rb ./res-pp/$MODULE-pp.svg 17 ./scripts/make_stub.sh $MODULE $HP