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

Subversion Repositories or1k

[/] [or1k/] [branches/] [oc/] [gdb-5.0/] [readline/] [support/] [mkdirs] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 106 markom
#! /bin/sh
2
#
3
# mkdirs - a work-alike for `mkdir -p'
4
#
5
# Chet Ramey
6
# chet@po.cwru.edu
7
 
8
for dir
9
do
10
 
11
        test -d "$dir" && continue
12
 
13
        tomake=$dir
14
        while test -n "$dir" ; do
15
                # dir=${dir%/*}
16
                # dir=`expr "$dir" ':' '\(/.*\)/[^/]*'`
17
                if dir=`expr "$dir" ':' '\(.*\)/[^/]*'`; then
18
                        tomake="$dir $tomake"
19
                else
20
                        dir=
21
                fi
22
        done
23
 
24
        for d in $tomake
25
        do
26
                test -d "$d" && continue
27
                echo mkdir "$d"
28
                mkdir "$d"
29
        done
30
done
31
 
32
exit 0

powered by: WebSVN 2.1.0

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