summaryrefslogtreecommitdiff
path: root/doc/doxy-wrapper.sh
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-04-24 14:52:27 +0200
committerAnton Khirnov <anton@khirnov.net>2021-06-11 19:28:27 +0200
commit5384ee486af11df9c9a9a9fd8f3cbd3fc859cd17 (patch)
tree5226e3af9a4f5a9d62ac0bd2d1fc34736c4f9610 /doc/doxy-wrapper.sh
parenta501d559050f395f22153a7954b193feb18325e4 (diff)
downloadffmpeg-5384ee486af11df9c9a9a9fd8f3cbd3fc859cd17.tar.gz
doc: fix generating doxy with out-of-tree builds
Broken in 753930bc7300dd595c4bab51c5a70d1da9083da4, as the path to Doxyfile passed to doxy-wrapper.sh is relative to the build dir, while the recipe cd's to the source dir before invoking the wrapper.
Diffstat (limited to 'doc/doxy-wrapper.sh')
-rwxr-xr-xdoc/doxy-wrapper.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/doc/doxy-wrapper.sh b/doc/doxy-wrapper.sh
index fe0102b5bf..729caa6347 100755
--- a/doc/doxy-wrapper.sh
+++ b/doc/doxy-wrapper.sh
@@ -1,10 +1,13 @@
#!/bin/sh
OUT_DIR="${1}"
-DOXYFILE="${2}"
-DOXYGEN="${3}"
+SRC_DIR="${2}"
+DOXYFILE="${3}"
+DOXYGEN="${4}"
-shift 3
+shift 4
+
+cd ${SRC_DIR}
if [ -e "VERSION" ]; then
VERSION=`cat "VERSION"`