OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib/] [mkinstalldirs] - Diff between revs 40 and 1765

Only display areas with differences | Details | Blame | View Log

Rev 40 Rev 1765
#! /bin/sh
#! /bin/sh
# mkinstalldirs --- make directory hierarchy
# mkinstalldirs --- make directory hierarchy
# Author: Noah Friedman 
# Author: Noah Friedman 
# Created: 1993-05-16
# Created: 1993-05-16
# Last modified: 1994-03-25
# Last modified: 1994-03-25
# Public domain
# Public domain
errstatus=0
errstatus=0
for file in ${1+"$@"} ; do
for file in ${1+"$@"} ; do
   set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
   set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
   shift
   shift
   pathcomp=
   pathcomp=
   for d in ${1+"$@"} ; do
   for d in ${1+"$@"} ; do
     pathcomp="$pathcomp$d"
     pathcomp="$pathcomp$d"
     case "$pathcomp" in
     case "$pathcomp" in
       -* ) pathcomp=./$pathcomp ;;
       -* ) pathcomp=./$pathcomp ;;
     esac
     esac
     if test ! -d "$pathcomp"; then
     if test ! -d "$pathcomp"; then
        echo "mkdir $pathcomp" 1>&2
        echo "mkdir $pathcomp" 1>&2
        mkdir "$pathcomp" > /dev/null 2>&1 || lasterr=$?
        mkdir "$pathcomp" > /dev/null 2>&1 || lasterr=$?
     fi
     fi
     if test ! -d "$pathcomp"; then
     if test ! -d "$pathcomp"; then
        errstatus=$lasterr
        errstatus=$lasterr
     fi
     fi
     pathcomp="$pathcomp/"
     pathcomp="$pathcomp/"
   done
   done
done
done
exit $errstatus
exit $errstatus
# mkinstalldirs ends here
# mkinstalldirs ends here
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.