Debian Codegraph @

scripts/mkdirs

raw symbols SCIP
1 #!/bin/shscip-shell filesystem . . `/bin/sh`.
2 #
3 # mkdirs - a work-alike for `mkdir -p'
4 #
5 # Chet Ramey
6 # [email protected]
7
8 for dir
9 do
10
11 testscip-shell system . . test. -d "$dir" && continue
12
13 tomake=$dir
14 while testscip-shell system . . test. -n "$dir" ; do
15 # dir=${dir%/*}
16 # dir=`expr "$dir" ':' '\(/.*\)/[^/]*'`
17 if dir=`exprscip-shell system . . expr. "$dir" ':' '\(.*\)/[^/]*'`; then
18 tomake="$dir $tomake"
19 else
20 dir=
21 fi
22 done
23
24 for d in $tomake
25 do
26 testscip-shell system . . test. -d "$d" && continue
27 echoscip-shell system . . echo. mkdir "$d"
28 mkdirscip-shell system . . mkdir. "$d"
29 done
30 done
31
32 exit 0