From: Martin Mares Date: Fri, 29 Aug 2003 17:39:34 +0000 (+0000) Subject: Updated the installation script to always check for missing directories. X-Git-Tag: holmes-import~1216 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=1b0066ef5e5aec110ecfbe1545c46c84dff7315a;p=libucw.git Updated the installation script to always check for missing directories. --- diff --git a/build/installer b/build/installer index 30aef1e1..3c7d15af 100755 --- a/build/installer +++ b/build/installer @@ -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}