From 72948b91a01e8da944ee12d46f5e757b51b64c8e Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Tue, 26 Nov 2002 23:18:35 +0000 Subject: * fixing RedHat spec file for 3.0 * updating Makefile & configure script to use CONFIGDIR & VFSLIBDIR * set LIBDIR to ${prefix}/lib/samba when --with-fhs is enabled * make installdirs take an arbitrary number of arguements (This used to be commit f0d09cf676bc335e8fde9fe730730f2949411a54) --- source3/script/installdirs.sh | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) (limited to 'source3/script/installdirs.sh') 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 + -- cgit