diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-02-20 03:23:01 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-02-20 03:23:01 -0500 |
commit | 76db9d7c71e36cd8fdd9a7094491ce7ca81f74e3 (patch) | |
tree | 2114946f64b325bbc56f19b007081fceb1ab852e /docs | |
parent | 34048f3dac585bd39f7561791d921a40ac8cf2ab (diff) | |
download | libgd-76db9d7c71e36cd8fdd9a7094491ce7ca81f74e3.tar.gz |
naturaldocs: fix program error from shell fixes
My previous changes to fix up shellcheck warnings broke this slightly
by not actually displaying the program name. Add some debugging info
to help triage issues in here in the future.
Diffstat (limited to 'docs')
-rwxr-xr-x | docs/naturaldocs/run_docs.sh | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/docs/naturaldocs/run_docs.sh b/docs/naturaldocs/run_docs.sh index d868e54..36bd81e 100755 --- a/docs/naturaldocs/run_docs.sh +++ b/docs/naturaldocs/run_docs.sh @@ -15,9 +15,9 @@ usage() { nd() { # Figure out the name of this tool. - if command -v naturaldocs >/dev/null ; then + if command -v naturaldocs ; then return - elif command -v NaturalDocs >/dev/null ; then + elif command -v NaturalDocs ; then return else return 1 @@ -45,7 +45,10 @@ elif [ $# -ne 0 ] ; then usage "unknown options: $*" fi -# Version number +# Dump the tool version info for debugging. +echo "Found '$(nd)': $($(nd) -h | head -n1)" + +# Library version number. VERSION=$(cd ../../; perl config/getver.pl) # Clear away old docs and ensure the doc dir. is present. |