~ubuntu-branches/ubuntu/vivid/libconfig/vivid

« back to all changes in this revision

Viewing changes to aux-build/mkinstalldirs

  • Committer: Package Import Robot
  • Author(s): Jonathan McCrohan
  • Date: 2013-10-12 16:41:14 UTC
  • mfrom: (3.2.5 sid)
  • Revision ID: package-import@ubuntu.com-20131012164114-aps48fwa26gs4fjt
Tags: 1.4.9-1
* New upstream release
* Update S-V to 3.9.4
  - No changes necessary
* Ensure that libconfig++-dbg depends on libconfig9 (= ${binary:Version})
  in addition to libconfig++9 (= ${binary:Version})
  - Fixes dbg-package-missing-depends lintian warning

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# mkinstalldirs --- make directory hierarchy
3
3
 
4
 
scriptversion=2005-02-02.21
 
4
scriptversion=2009-04-28.21; # UTC
5
5
 
6
6
# Original author: Noah Friedman <friedman@prep.ai.mit.edu>
7
7
# Created: 1993-05-16
11
11
# bugs to <bug-automake@gnu.org> or send patches to
12
12
# <automake-patches@gnu.org>.
13
13
 
 
14
nl='
 
15
'
 
16
IFS=" ""        $nl"
14
17
errstatus=0
15
 
dirmode=""
 
18
dirmode=
16
19
 
17
20
usage="\
18
21
Usage: mkinstalldirs [-h] [--help] [--version] [-m MODE] DIR ...
103
106
 
104
107
for file
105
108
do
106
 
  set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
 
109
  case $file in
 
110
    /*) pathcomp=/ ;;
 
111
    *)  pathcomp= ;;
 
112
  esac
 
113
  oIFS=$IFS
 
114
  IFS=/
 
115
  set fnord $file
107
116
  shift
 
117
  IFS=$oIFS
108
118
 
109
 
  pathcomp=
110
119
  for d
111
120
  do
112
 
    pathcomp="$pathcomp$d"
 
121
    test "x$d" = x && continue
 
122
 
 
123
    pathcomp=$pathcomp$d
113
124
    case $pathcomp in
114
125
      -*) pathcomp=./$pathcomp ;;
115
126
    esac
124
135
      else
125
136
        if test ! -z "$dirmode"; then
126
137
          echo "chmod $dirmode $pathcomp"
127
 
          lasterr=""
 
138
          lasterr=
128
139
          chmod "$dirmode" "$pathcomp" || lasterr=$?
129
140
 
130
141
          if test ! -z "$lasterr"; then
134
145
      fi
135
146
    fi
136
147
 
137
 
    pathcomp="$pathcomp/"
 
148
    pathcomp=$pathcomp/
138
149
  done
139
150
done
140
151
 
146
157
# eval: (add-hook 'write-file-hooks 'time-stamp)
147
158
# time-stamp-start: "scriptversion="
148
159
# time-stamp-format: "%:y-%02m-%02d.%02H"
149
 
# time-stamp-end: "$"
 
160
# time-stamp-time-zone: "UTC"
 
161
# time-stamp-end: "; # UTC"
150
162
# End: