From: Noah Friedman Date: Sun, 23 May 1993 07:49:17 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: fsf-origin~895 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cfe5453c191aa7a537489b9ec4148bcb2169a8f8;p=thirdparty%2Fautoconf.git *** empty log message *** --- diff --git a/mkinstalldirs b/mkinstalldirs index a87fe222f..1900b49ea 100755 --- a/mkinstalldirs +++ b/mkinstalldirs @@ -8,13 +8,14 @@ defaultIFS=' IFS="${IFS-${defaultIFS}}" for file in ${1+"$@"} ; do - oIFS="${IFS}"; IFS='/'; set - ${file}; IFS="${oIFS}" + oIFS="${IFS}" + # Some sh's can't handle IFS=/ for some reason. + IFS='%' + set - `echo ${file} | sed -e 's@/@%@g' -e 's@^%@/@'` + IFS="${oIFS}" test ".${1}" = "." && shift - case "${file}" in - /* ) pathcomp='/' ;; - * ) pathcomp='' ;; - esac + pathcomp='' while test $# -ne 0 ; do pathcomp="${pathcomp}${1}"