comparison mkinstalldirs @ 35853:774df19dd335

(errstatus): Chmod a+rx directories we create.
author Gerd Moellmann <gerd@gnu.org>
date Fri, 02 Feb 2001 13:09:26 +0000
parents 4fe4a165a116
children f0eb34e60705 746c40973d25
comparison
equal deleted inserted replaced
35852:00c8f1c77b9e 35853:774df19dd335
2 # mkinstalldirs --- make directory hierarchy 2 # mkinstalldirs --- make directory hierarchy
3 # Author: Noah Friedman <friedman@prep.ai.mit.edu> 3 # Author: Noah Friedman <friedman@prep.ai.mit.edu>
4 # Created: 1993-05-16 4 # Created: 1993-05-16
5 # Public domain 5 # Public domain
6 6
7 # $Id: mkinstalldirs,v 1.11 1998/05/19 07:05:25 drepper dead $ 7 # $Id: mkinstalldirs,v 1.1 2001/02/02 13:04:53 gerd Exp $
8 8
9 errstatus=0 9 errstatus=0
10 10
11 for file 11 for file
12 do 12 do
22 esac 22 esac
23 23
24 if test ! -d "$pathcomp"; then 24 if test ! -d "$pathcomp"; then
25 echo "mkdir $pathcomp" 1>&2 25 echo "mkdir $pathcomp" 1>&2
26 26
27 mkdir "$pathcomp" || lasterr=$? 27 (mkdir "$pathcomp" && chmod a+rx "$pathcomp") || lasterr=$?
28 28
29 if test ! -d "$pathcomp"; then 29 if test ! -d "$pathcomp"; then
30 errstatus=$lasterr 30 errstatus=$lasterr
31 fi 31 fi
32 fi 32 fi