| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 | 2 |
| 3 # fiddle_run executes the build fiddle (from the local | 3 # fiddle_run executes the build fiddle (from the local |
| 4 # skia tree's out/Release directory) and places the output | 4 # skia tree's out/Release directory) and places the output |
| 5 # png into the inout directory so it can be seen | 5 # png into the inout directory so it can be seen |
| 6 # outside the chroot jail and served back to the user. | 6 # outside the chroot jail and served back to the user. |
| 7 | 7 |
| 8 [ -z $SKIA_ROOT ] && SKIA_ROOT="/skia_build/skia" | 8 [ -z $SKIA_ROOT ] && SKIA_ROOT="/skia_build/skia" |
| 9 [ -z $WEBTRY_INOUT ] && WEBTRY_INOUT="/skia_build/inout" | 9 [ -z $WEBTRY_INOUT ] && WEBTRY_INOUT="/skia_build/inout" |
| 10 | 10 |
| 11 if [ "$#" -eq 2 ]; then | 11 $SKIA_ROOT/out/Release/$1 --out $WEBTRY_INOUT/$1.png "${@:2}" |
| 12 FIDDLE_SOURCE_ARGS="--source $WEBTRY_INOUT/$2" | |
| 13 fi | |
| 14 | |
| 15 $SKIA_ROOT/out/Release/$1 --out $WEBTRY_INOUT/$1.png $FIDDLE_SOURCE_ARGS | |
| OLD | NEW |