Allow extract-docs to be run from elsewhere

currently extract-docs assumes you're in the incubator root directory.

Change-Id: I307e0d6c15870f0e58c201b71e322f26dabd40b2
This commit is contained in:
Derek Higgins 2013-10-15 23:45:36 +01:00
parent a6abcc2394
commit b8c3c7b9b7

View File

@ -50,8 +50,8 @@ done
EXTRA=${1:-""}
for script in $(ls scripts/devtest*.sh) ; do
bname=${script#*/}
for script in $(ls $SCRIPT_HOME/../scripts/devtest*.sh) ; do
bname=${script##*/}
noext=${bname%.sh}
awk -f scripts/extract-docs.awk $script > doc/source/$noext.rst
awk -f $SCRIPT_HOME/extract-docs.awk $script > $SCRIPT_HOME/../doc/source/$noext.rst
done