~ubuntu-branches/ubuntu/feisty/apache2/feisty

« back to all changes in this revision

Viewing changes to srclib/apr/build/mkdir.sh

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Barth
  • Date: 2006-12-09 21:05:45 UTC
  • mfrom: (0.6.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20061209210545-h70s0xaqc2v8vqr2
Tags: 2.2.3-3.2
* Non-maintainer upload.
* 043_ajp_connection_reuse: Patch from upstream Bugzilla, fixing a critical
  issue with regard to connection reuse in mod_proxy_ajp.
  Closes: #396265

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
## 
 
3
##  mkdir.sh -- make directory hierarchy
 
4
##
 
5
##  Based on `mkinstalldirs' from Noah Friedman <friedman@prep.ai.mit.edu>
 
6
##  as of 1994-03-25, which was placed in the Public Domain.
 
7
##  Cleaned up for Apache's Autoconf-style Interface (APACI)
 
8
##  by Ralf S. Engelschall <rse@apache.org>
 
9
##
 
10
#
 
11
# This script falls under the Apache License.
 
12
# See http://www.apache.org/docs/LICENSE
 
13
 
 
14
 
 
15
umask 022
 
16
errstatus=0
 
17
for file in ${1+"$@"} ; do 
 
18
    set fnord `echo ":$file" |\
 
19
               sed -e 's/^:\//%/' -e 's/^://' -e 's/\// /g' -e 's/^%/\//'`
 
20
    shift
 
21
    pathcomp=
 
22
    for d in ${1+"$@"}; do
 
23
        pathcomp="$pathcomp$d"
 
24
        case "$pathcomp" in
 
25
            -* ) pathcomp=./$pathcomp ;;
 
26
            ?: ) pathcomp="$pathcomp/" 
 
27
                 continue ;;
 
28
        esac
 
29
        if test ! -d "$pathcomp"; then
 
30
            echo "mkdir $pathcomp" 1>&2
 
31
            mkdir "$pathcomp" || errstatus=$?
 
32
        fi
 
33
        pathcomp="$pathcomp/"
 
34
    done
 
35
done
 
36
exit $errstatus
 
37