diff options
author | Gerald Carter <jerry@samba.org> | 2003-01-15 18:31:46 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2003-01-15 18:31:46 +0000 |
commit | 5fb59502585c68d03bf016d6a4470f2519f941d7 (patch) | |
tree | 73cf24d130aba86a48209c41c356e25eac7df2d4 /source3/script/installdirs.sh | |
parent | f6f4492874e2e4195b70ee9ea1cf0a495e813913 (diff) | |
download | samba-5fb59502585c68d03bf016d6a4470f2519f941d7.tar.gz samba-5fb59502585c68d03bf016d6a4470f2519f941d7.tar.bz2 samba-5fb59502585c68d03bf016d6a4470f2519f941d7.zip |
small merges from SAMBA_3_0; mostly typos, renames, etc...
(This used to be commit 9ac196dad4893b0ceef13281a140be5d85391e6c)
Diffstat (limited to 'source3/script/installdirs.sh')
-rwxr-xr-x | source3/script/installdirs.sh | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/source3/script/installdirs.sh b/source3/script/installdirs.sh index dd8f7cd19c..9557b86d3b 100755 --- a/source3/script/installdirs.sh +++ b/source3/script/installdirs.sh @@ -1,20 +1,17 @@ #!/bin/sh -BASEDIR=$1 -SBINDIR=$2 -BINDIR=$3 -LIBDIR=$4 -VARDIR=$5 -PRIVATEDIR=$6 +while ( test -n "$1" ); do + if [ ! -d $1 ]; then + mkdir -p $1 + fi -for d in $BASEDIR $SBINDIR $BINDIR $LIBDIR $VARDIR $PRIVATEDIR; do -if [ ! -d $d ]; then -mkdir $d -if [ ! -d $d ]; then - echo Failed to make directory $d - exit 1 -fi -fi + if [ ! -d $1 ]; then + echo Failed to make directory $1 + exit 1 + fi + + shift; done + |