| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 | 2 |
| 3 # fiddle_wrapper takes the hash of the fiddle as its first argument, and a sourc
e image to include as an | 3 # fiddle_wrapper takes the hash of the fiddle as its first argument, and additio
nal arguments to |
| 4 # optional second. Then it: | 4 # be passed to the build fiddle executable. Then it: |
| 5 # | 5 # |
| 6 # 1) runs fiddle_gyp to create the gyp file | 6 # 1) runs fiddle_gyp to create the gyp file |
| 7 # 2) runs fiddle_ninja to build the executable | 7 # 2) runs fiddle_ninja to build the executable |
| 8 # 3) runs fiddle_run to generate the output .png file. | 8 # 3) runs fiddle_run to generate the output .png file. |
| 9 # | 9 # |
| 10 # the output PNG file goes into the inout directory, which is shared between the
chroot | 10 # the output PNG file goes into the inout directory, which is shared between the
chroot |
| 11 # jail and the webserver environment. | 11 # jail and the webserver environment. |
| 12 | 12 |
| 13 [ -z "$SKIA_ROOT" ] && SKIA_ROOT="/skia_build/skia" | 13 [ -z "$SKIA_ROOT" ] && SKIA_ROOT="/skia_build/skia" |
| 14 | 14 |
| 15 cd $SKIA_ROOT/experimental/webtry/scripts | 15 cd $SKIA_ROOT/experimental/webtry/scripts |
| 16 | 16 |
| 17 ./fiddle_gyp $1 | 17 ./fiddle_gyp $1 |
| 18 ./fiddle_ninja $1 | 18 ./fiddle_ninja $1 |
| 19 ./fiddle_run $1 $2 | 19 ./fiddle_run $@ |
| OLD | NEW |