535N/A# mkinstalldirs --- make directory hierarchy 535N/A# Original author: Noah Friedman <friedman@prep.ai.mit.edu> 535N/A# This file is maintained in Automake, please report 535N/A# bugs to <bug-automake@gnu.org> or send patches to 535N/A# <automake-patches@gnu.org>. 535N/AUsage: mkinstalldirs [-h] [--help] [--version] [-m MODE] DIR ... 535N/ACreate each directory DIR (with mode MODE, if specified), including all 535N/Aleading file name components. 535N/AReport bugs to <bug-automake@gnu.org>." 535N/A# process command line arguments 535N/A --)
# stop option processing 535N/A# Solaris 8's mkdir -p isn't thread-safe. If you mkdir -p a/b and 535N/A# mkdir -p a/c at the same time, both will detect that a is missing, 535N/A# one will create a, then the other will try to create a and die with 535N/A# a "File exists" error. This is a problem when calling mkinstalldirs 535N/A# from a parallel make. We use --version in the probe to restrict 535N/A# ourselves to GNU mkdir, which is thread-safe. 535N/A # On NextStep and OpenStep, the `mkdir' command does not 535N/A # recognize any option. It will interpret all options as 535N/A # directories to create, and then abort because `.' already 535N/A # Clean up after NextStep and OpenStep mkdir. # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H"