summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRan Benita <ran234@gmail.com>2017-08-01 22:19:48 +0300
committerRan Benita <ran234@gmail.com>2017-08-01 23:32:15 +0300
commit41bea9ab2bf21e3e9544b4beed86a362fe40d57f (patch)
treee7b73e637b89150579cfde6964c2bdcf384b43c2 /scripts
parentccc3415edd036be24bae3c7c3a615e04bdcebbaf (diff)
downloadxorg-lib-libxkbcommon-41bea9ab2bf21e3e9544b4beed86a362fe40d57f.tar.gz
build: make doxygen run from the source tree
I couldn't find any other way to make this work! Signed-off-by: Ran Benita <ran234@gmail.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/doxygen-wrapper8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/doxygen-wrapper b/scripts/doxygen-wrapper
new file mode 100755
index 0000000..baa7b26
--- /dev/null
+++ b/scripts/doxygen-wrapper
@@ -0,0 +1,8 @@
+#!/bin/sh
+# Run doxygen such that the working directory is the source root.
+# This is needed for various reasons (e.g. relative references in md files).
+# Do not use directly.
+DOXYGEN="$1"
+DOXYFILE="$2"
+ABS_TOP_SRCDIR="$3"
+cd "$ABS_TOP_SRCDIR" && exec "$DOXYGEN" "$DOXYFILE"