~pac72/ubuntu/lucid/ddd/devel

« back to all changes in this revision

Viewing changes to readline/support/mkdirs

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Schepler
  • Date: 2004-07-22 03:49:37 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20040722034937-cysl08t1jvba4jrx
Tags: 1:3.3.9-3
USERINFO has been renamed to USERINFO.txt; adjust debian/rules code
to match, to get correct information on the About DDD dialog.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /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