diff options
author | Noah Friedman <friedman@splode.com> | 1993-05-23 07:49:17 +0000 |
---|---|---|
committer | Noah Friedman <friedman@splode.com> | 1993-05-23 07:49:17 +0000 |
commit | 8a0e480b3f784ec07d46747dbb11e785a04a42e9 (patch) | |
tree | d51d2bee6a4017a237d2679338a61baa1d0360d2 /mkinstalldirs | |
parent | 88bba7f9221abe6bb020f776d25f98228b588b60 (diff) |
*** empty log message ***
Diffstat (limited to 'mkinstalldirs')
-rwxr-xr-x | mkinstalldirs | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/mkinstalldirs b/mkinstalldirs index a87fe222f8..1900b49ea4 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}" |