]> mj.ucw.cz Git - libucw.git/commitdiff
Updated the installation script to always check for missing directories.
authorMartin Mares <mj@ucw.cz>
Fri, 29 Aug 2003 17:39:34 +0000 (17:39 +0000)
committerMartin Mares <mj@ucw.cz>
Fri, 29 Aug 2003 17:39:34 +0000 (17:39 +0000)
build/installer

index 30aef1e137e678a905ae7faf86d2722be9cfa0b8..3c7d15aff3957e5c6a05e81c48962309343aa75c 100755 (executable)
@@ -3,10 +3,12 @@ set -e
 DEST=`eval echo $1`
 shift
 echo "Installing to $DEST"
-if [ ! -d $DEST/cf ] ; then
-       echo "Creating $DEST and the whole directory hierarchy under it."
-       mkdir -p $DEST/{cf,db,index,log,tmp}
-fi
+for d in $DEST/{,cf,db,index,log,tmp} ; do
+       if [ ! -d $d ] ; then
+               echo "Creating $d"
+               mkdir $d
+       fi
+done
 echo "Installing binaries..."
 rm -rf $DEST/{bin,lib}
 mkdir -p $DEST/{bin,lib}