Return to build.sh CVS log | Up to [cvs.NetBSD.org] / src |
Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. |
version 1.36, 2001/12/17 13:16:10 | version 1.37, 2001/12/19 20:59:07 | ||
---|---|---|---|
|
|
||
# Emulate "mkdir -p" for systems that have an Old "mkdir". | # Emulate "mkdir -p" for systems that have an Old "mkdir". | ||
mkdirp () { | mkdirp () { | ||
_d= | |||
case "$1" in /*) _d=/;; esac | |||
oifs=$IFS | oifs=$IFS | ||
IFS=/; set -- $@; IFS=$oifs | IFS=/; set -- $@; IFS=$oifs | ||
_d= | |||
if [ -z "$1" ]; then _d=/; shift; fi | |||
for _f in "$@"; do | for _f in "$@"; do | ||
if [ -n "$_f" ]; then | if [ -n "$_f" ]; then |