Ian> I would like to write a patch to fix this, but am wondering what be the
Ian> "more correct" approach: to test for 'include', and then create it if it
Ian> doesn't exist, something like:
Ian>    if [ ! test -d include ]; then mkdir include
Ian> or to use 'mkdir -p', which, as I understand it, creates a directory if
Ian> it doesn't exist and does nothing if it does.

Technically, "mkdir -p" isn't portable.  In practice it might not
matter.

I personaly (sometimes) do this in scripts:

mkdir include > /dev/null 2>&1

Then it doesn't matter if the directory already exists.

Tom

Reply via email to