aboutsummaryrefslogtreecommitdiffstats
path: root/resources
diff options
context:
space:
mode:
Diffstat (limited to 'resources')
-rw-r--r--resources/createTagletProps.sh9
-rw-r--r--resources/native-taglet.properties2
2 files changed, 6 insertions, 5 deletions
diff --git a/resources/createTagletProps.sh b/resources/createTagletProps.sh
index 9708a822..ca971be1 100644
--- a/resources/createTagletProps.sh
+++ b/resources/createTagletProps.sh
@@ -1,8 +1,9 @@
#download index
-root=http://www.khronos.org/opencl/sdk/1.0/docs/man/xhtml
-wget ${root}/Opencl_tofc.html;
+root=http://www.khronos.org/opencl/sdk/1.0/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\>.+ ./Opencl_tofc.html > links;
+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
@@ -10,4 +11,4 @@ echo "#Generated, do not edit, edit createTagletProps.sh instead.
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 >> native-taglet.properties;
-rm ./Opencl_tofc.html ./links
+rm ./${toc} ./links
diff --git a/resources/native-taglet.properties b/resources/native-taglet.properties
index c6b27dc4..348e4492 100644
--- a/resources/native-taglet.properties
+++ b/resources/native-taglet.properties
@@ -1,7 +1,7 @@
#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=http://www.khronos.org/opencl/sdk/1.0/docs/man/xhtml
+nativetaglet.baseUrl=http://www.khronos.org/opencl/sdk/1.0/docs/man/xhtml/
clCreateCommandQueue=clCreateCommandQueue.html
clCreateContext=clCreateContext.html
clCreateContextFromType=clCreateContextFromType.html