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