aboutsummaryrefslogtreecommitdiff
path: root/generate-docs.sh
diff options
context:
space:
mode:
Diffstat (limited to 'generate-docs.sh')
-rwxr-xr-xgenerate-docs.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/generate-docs.sh b/generate-docs.sh
new file mode 100755
index 0000000..a633511
--- /dev/null
+++ b/generate-docs.sh
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+SOURCE_PATH="https://git.rc-05.com/haxe-unix-sockets/tree/src"
+VERSION=${VERSION:-git}
+
+haxe --class-path src \
+ --no-output \
+ --each \
+ --next --cpp cpp --xml cpp/types.xml \
+ unix
+
+haxelib run dox \
+ -i cpp/types.xml \
+ -o docs \
+ --toplevel-package unix \
+ -D version $VERSION \
+ -D source-path $SOURCE_PATH