diff options
Diffstat (limited to 'mkdocu.sh')
-rwxr-xr-x | mkdocu.sh | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1,12 +1,12 @@ -#!/usr/bin/env bash +#!/bin/sh -if ! ndpath=$(which NaturalDocs 2>/dev/null); then -if ! ndpath=$(which naturaldocs 2>/dev/null); then +if ! ndpath=`which NaturalDocs 2>/dev/null`; then +if ! ndpath=`which naturaldocs 2>/dev/null`; then echo "NaturalDocs could not be found!" >/dev/stderr exit 1 fi; fi -if [ ! -d docu/nd ]; then mkdir docu/nd; fi -if [ ! -d docu/nd_project_dir ]; then mkdir docu/nd_project_dir; fi +test -d docu/nd || mkdir docu/nd +test -d docu/nd_project_dir || mkdir docu/nd_project_dir $ndpath -i . -o html docu/nd -p docu/nd_project_dir |