]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
*** empty log message ***
authorNoah Friedman <friedman@splode.com>
Sun, 23 May 1993 07:49:17 +0000 (07:49 +0000)
committerNoah Friedman <friedman@splode.com>
Sun, 23 May 1993 07:49:17 +0000 (07:49 +0000)
mkinstalldirs

index a87fe222f8f079d86dbe54dfa6e44e498c1e3131..1900b49ea4a8bf9794a7cd00e1ea4264bde3f371 100755 (executable)
@@ -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}"