Index: experimental/webtry/scripts/fiddle_wrapper |
diff --git a/experimental/webtry/scripts/fiddle_wrapper b/experimental/webtry/scripts/fiddle_wrapper |
new file mode 100755 |
index 0000000000000000000000000000000000000000..a68b360015e4fd7cb8e8a56ade44491c374e5d0b |
--- /dev/null |
+++ b/experimental/webtry/scripts/fiddle_wrapper |
@@ -0,0 +1,19 @@ |
+#!/bin/bash |
+ |
+# fiddle_wrapper takes the hash of the fiddle as its first argument, and a source image to include as an |
+# optional second. Then it: |
+# |
+# 1) runs fiddle_gyp to create the gyp file |
+# 2) runs fiddle_ninja to build the executable |
+# 3) runs fiddle_run to generate the output .png file. |
+# |
+# the output PNG file goes into the inout directory, which is shared between the chroot |
+# jail and the webserver environment. |
+ |
+[ -z "$SKIA_ROOT" ] && SKIA_ROOT="/skia_build/skia" |
+ |
+cd $SKIA_ROOT/experimental/webtry/scripts |
+ |
+./fiddle_gyp $1 |
+./fiddle_ninja $1 |
+./fiddle_run $1 $2 |