unix4artists/processing/example-sketch.sh

10 lines
290 B
Bash

#!/bin/bash
#https://github.com/processing/processing/wiki/Command-Line
# processing-java requires the full path of the sketch
SKETCH=`realpath ./processing/example-sketch`
# pass all arguments on bash script example-sketch.pde sketch
processing-java --sketch="${SKETCH}" --run \
"${@}"