diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-02-08 18:10:51 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-02-08 18:10:51 -0500 |
commit | c75db8d0825ff816cb05e9e46b7017b03a6b100d (patch) | |
tree | 3b60b6a54c0e8eee532457e358ff81929a970888 /docs | |
parent | e1f02d2833a7de496e4c148206f421cd664f0d56 (diff) | |
download | libgd-c75db8d0825ff816cb05e9e46b7017b03a6b100d.tar.gz |
scripts: clean up various shellcheck warnings
Should hopefully not break anything :).
Diffstat (limited to 'docs')
-rwxr-xr-x | docs/naturaldocs/run_docs.sh | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/docs/naturaldocs/run_docs.sh b/docs/naturaldocs/run_docs.sh index 950d66d..d868e54 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 which naturaldocs 2>/dev/null ; then + if command -v naturaldocs >/dev/null ; then return - elif which NaturalDocs 2>/dev/null ; then + elif command -v NaturalDocs >/dev/null ; then return else return 1 @@ -46,7 +46,7 @@ elif [ $# -ne 0 ] ; then fi # Version number -VERSION=`(cd ../../; perl config/getver.pl)` +VERSION=$(cd ../../; perl config/getver.pl) # Clear away old docs and ensure the doc dir. is present. rm -rf html @@ -66,11 +66,11 @@ sed -e "s/@VERSION@/$VERSION/g" preamble.txt > tmp/preamble.txt # Run naturaldocs to create the manual. $(nd) --rebuild --rebuild-output --documented-only \ - -i tmp/ \ - -img images/ \ - -o html html \ - --project project/ \ - -s Default libgd + -i tmp/ \ + -img images/ \ + -o html html \ + --project project/ \ + -s Default libgd # And cleanup the temp files. rm -rf Data tmp |