source: release-kits/shared/mac/gdbm-1.8.3/mkinstalldirs@ 16455

Last change on this file since 16455 was 16455, checked in by oranfry, 16 years ago

a compiled gdbm for the mac installer. should leave it uncompiled, but for now just doing it the way the wiki says to.

  • Property svn:executable set to *
File size: 619 bytes
Line 
1#!/bin/sh
2# Make directory hierarchy.
3# Written by Noah Friedman <[email protected]>
4# Public domain.
5
6defaultIFS='
7'
8IFS="${IFS-${defaultIFS}}"
9
10errstatus=0
11
12for file in ${1+"$@"} ; do
13 oIFS="${IFS}"
14 # Some sh's can't handle IFS=/ for some reason.
15 IFS='%'
16 set - `echo ${file} | sed -e 's@/@%@g' -e 's@^%@/@'`
17 IFS="${oIFS}"
18
19 pathcomp=''
20
21 for d in ${1+"$@"} ; do
22 pathcomp="${pathcomp}${d}"
23
24 if test ! -d "${pathcomp}"; then
25 echo "mkdir $pathcomp" 1>&2
26 mkdir "${pathcomp}" || errstatus=$?
27 fi
28
29 pathcomp="${pathcomp}/"
30 done
31done
32
33exit $errstatus
34
35# eof
Note: See TracBrowser for help on using the repository browser.