aboutsummaryrefslogtreecommitdiffhomepage
path: root/experimental/webtry/build
diff options
context:
space:
mode:
Diffstat (limited to 'experimental/webtry/build')
-rwxr-xr-xexperimental/webtry/build4
1 files changed, 3 insertions, 1 deletions
diff --git a/experimental/webtry/build b/experimental/webtry/build
index 8536dbce16..ace33b1e0b 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}