Index: experimental/webtry/build |
diff --git a/experimental/webtry/build b/experimental/webtry/build |
index 8536dbce16d03ab8ceb0a919f3aeffc8f244a574..ace33b1e0bbd264ddb451d74b05ddbff34d4023c 100755 |
--- a/experimental/webtry/build |
+++ b/experimental/webtry/build |
@@ -18,7 +18,9 @@ PATH=$PATH:$GOROOT/bin |
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 |
+find core effects pathops -maxdepth 1 -name "*.h" | sed "s/.*\///" | sed "s/\(.*\)/#include \"\1\"/" | sort > ${WEBTRY_ROOT}/templates/template.cpp |
+echo '#include "sk_tool_utils.h"' >> ${WEBTRY_ROOT}/templates/template.cpp |
+echo '' >> ${WEBTRY_ROOT}/templates/template.cpp |
echo "SkBitmap source;" >> ${WEBTRY_ROOT}/templates/template.cpp |
echo "{{.Code}}" >> ${WEBTRY_ROOT}/templates/template.cpp |
cd ${WEBTRY_ROOT} |