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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [acsupport/] [mkinstalldirs] - Diff between revs 28 and 174

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 28 Rev 174
#! /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.