aboutsummaryrefslogtreecommitdiffstats
path: root/make/resources/createTagletProps.sh
diff options
context:
space:
mode:
Diffstat (limited to 'make/resources/createTagletProps.sh')
-rw-r--r--make/resources/createTagletProps.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/make/resources/createTagletProps.sh b/make/resources/createTagletProps.sh
new file mode 100644
index 00000000..af3312e8
--- /dev/null
+++ b/make/resources/createTagletProps.sh
@@ -0,0 +1,14 @@
+#download index
+root=http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/
+toc=Opencl_tofc.html
+wget ${root}/${toc};
+#find links to cl* function doc
+grep -E .+\<a\ href=\"cl[A-Z][^\"]+\"[^\>]+\>cl[A-Z][a-Z0-9]+\</a\>.+ ./${toc} > links;
+#add doc root to properties file
+echo "#Generated, do not edit, edit createTagletProps.sh instead.
+#This file is used in NativeTaglet and maps the generated method names
+#to the function specific OpenCL documentation man pages.
+nativetaglet.baseUrl=${root}" > native-taglet.properties;
+#add all links as properties to file and cleanup
+sed -r 's/\s+<li><a href="([a-Z0-9.]+)"[^>]+>([a-Z0-9]+)<\/a><\/li>/\2=\1/' links | tr -d [:blank:] | sort -u >> native-taglet.properties;
+rm ./${toc} ./links