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

Subversion Repositories or1k

[/] [or1k/] [tags/] [nog_patch_40/] [or1ksim/] [mkinstalldirs] - Diff between revs 1405 and 1765

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

Rev 1405 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
# Public domain
# Public domain
# $Id: mkinstalldirs,v 1.1 2000-03-03 15:39:45 jrydberg Exp $
# $Id: mkinstalldirs,v 1.1 2000-03-03 15:39:45 jrydberg Exp $
errstatus=0
errstatus=0
for file
for file
do
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
   for d
   do
   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"
        echo "mkdir $pathcomp"
        mkdir "$pathcomp" || lasterr=$?
        mkdir "$pathcomp" || lasterr=$?
        if test ! -d "$pathcomp"; then
        if test ! -d "$pathcomp"; then
          errstatus=$lasterr
          errstatus=$lasterr
        fi
        fi
     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.