Index: experimental/webtry/build |
diff --git a/experimental/webtry/build b/experimental/webtry/build |
new file mode 100644 |
index 0000000000000000000000000000000000000000..7b2cf9cf176b5ec50e6094943c958508739515fe |
--- /dev/null |
+++ b/experimental/webtry/build |
@@ -0,0 +1,14 @@ |
+#!/bin/sh |
jcgregorio
2014/09/09 19:14:11
Needs a top level comment explaining what the scri
humper
2014/09/09 19:25:18
Done.
|
+ |
+[ -z "$SKIA_ROOT" ] && SKIA_ROOT="../.." |
+[ -z "$WEBTRY_ROOT" ] && WEBTRY_ROOT=`pwd` |
+ |
+cd ${SKIA_ROOT}/include |
+echo "Creating compile template..." |
+find core effects pathops -maxdepth 1 -name "*.h" | sed "s#^[^\/]*\/##g" | sed "s/\(.*\)/#include \"\1\"/" | sort > ${WEBTRY_ROOT}/templates/template.cpp |
+echo "SkBitmap source;" >> ${WEBTRY_ROOT}/templates/template.cpp |
+echo "{{.Code}}" >> ${WEBTRY_ROOT}/templates/template.cpp |
+cd ${WEBTRY_ROOT} |
+echo "Building webtry..." |
+go build webtry.go |
+echo "Done!" |