comparison mkinstalldirs @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents 77e2b8dfacca
children
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
79 '') 79 '')
80 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 80 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
81 echo "mkdir -p -- $*" 81 echo "mkdir -p -- $*"
82 exec mkdir -p -- "$@" 82 exec mkdir -p -- "$@"
83 else 83 else
84 # On NextStep and OpenStep, the `mkdir' command does not 84 # On NextStep and OpenStep, the 'mkdir' command does not
85 # recognize any option. It will interpret all options as 85 # recognize any option. It will interpret all options as
86 # directories to create, and then abort because `.' already 86 # directories to create, and then abort because '.' already
87 # exists. 87 # exists.
88 test -d ./-p && rmdir ./-p 88 test -d ./-p && rmdir ./-p
89 test -d ./--version && rmdir ./--version 89 test -d ./--version && rmdir ./--version
90 fi 90 fi
91 ;; 91 ;;