mkinstalldirs revision 38ae7e4efe803ea78b6499cd05a394db32623e41
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync# mkinstalldirs --- make directory hierarchy
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync# Author: Noah Friedman <friedman@prep.ai.mit.edu>
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync# Created: 1993-05-16
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync# Public domain
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsyncUsage: mkinstalldirs [-h] [--help] [-m mode] dir ..."
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync# process command line arguments
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync -m ) # -m PERM arg
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync -- ) shift; break ;; # stop option processing
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync -* ) echo "${usage}" 1>&2; exit 1 ;; # unknown option
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync * ) break ;; # first non-opt arg
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync if test -d "$file"; then
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync echo "mkdir -p -- $*"
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync echo "mkdir -m $dirmode -p -- $*"
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync if test ! -d "$pathcomp"; then
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync if test ! -d "$pathcomp"; then
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync if test ! -z "$dirmode"; then
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync if test ! -z "$lasterr"; then
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync# Local Variables:
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync# mode: shell-script
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync# sh-indentation: 3
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync# mkinstalldirs ends here