From 1b0066ef5e5aec110ecfbe1545c46c84dff7315a Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Fri, 29 Aug 2003 17:39:34 +0000 Subject: [PATCH] Updated the installation script to always check for missing directories. --- build/installer | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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} -- 2.39.2