diff options
author | Michael Bien <[email protected]> | 2009-11-23 00:17:19 +0100 |
---|---|---|
committer | Michael Bien <[email protected]> | 2009-11-23 00:17:19 +0100 |
commit | 2926f30798fccfcaa66f30eb5c55c29336eab949 (patch) | |
tree | efffd943ae67c3e654f61a2e1b2d40c7cb35f4a3 /resources/createTagletProps.sh | |
parent | bee7d042a78b76afee1789bd48ab3e67c9a3fe8d (diff) |
added remaining @native tags to method javadoc.
fixed createTagletProps.sh to recognize function names containing numbers.
Diffstat (limited to 'resources/createTagletProps.sh')
-rw-r--r-- | resources/createTagletProps.sh | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/resources/createTagletProps.sh b/resources/createTagletProps.sh index 537f61fe..9708a822 100644 --- a/resources/createTagletProps.sh +++ b/resources/createTagletProps.sh @@ -1,9 +1,13 @@ #download index -wget http://www.khronos.org/opencl/sdk/1.0/docs/man/xhtml/Opencl_tofc.html; +root=http://www.khronos.org/opencl/sdk/1.0/docs/man/xhtml +wget ${root}/Opencl_tofc.html; #find links to cl* function doc -grep -E .+\<a\ href=\"cl[A-Z][^\"]+\"[^\>]+\>cl[A-Z][a-Z]+\</a\>.+ ./Opencl_tofc.html > links; +grep -E .+\<a\ href=\"cl[A-Z][^\"]+\"[^\>]+\>cl[A-Z][a-Z0-9]+\</a\>.+ ./Opencl_tofc.html > links; #add doc root to properties file -echo nativetaglet.baseUrl=http://www.khronos.org/opencl/sdk/1.0/docs/man/xhtml/ > native-taglet.properties; +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-Z.]+)"[^>]+>([a-Z]+)<\/a><\/li>/\2=\1/' links >> native-taglet.properties; +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 |