From: Martin Mares Date: Mon, 15 Sep 2003 07:45:47 +0000 (+0000) Subject: Allow submakefiles to add their own installation directories and to override X-Git-Tag: holmes-import~1215 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=4c5d48354c38f5e8b36f9413d705d03b4c31aaf5;p=libucw.git Allow submakefiles to add their own installation directories and to override the run/bin directory. Propagate the directories to the installer. --- diff --git a/build/installer b/build/installer index 3c7d15af..be4a2bbd 100755 --- a/build/installer +++ b/build/installer @@ -1,12 +1,11 @@ #!/bin/sh set -e DEST=`eval echo $1` -shift echo "Installing to $DEST" -for d in $DEST/{,cf,db,index,log,tmp} ; do - if [ ! -d $d ] ; then - echo "Creating $d" - mkdir $d +for d in "" cf $SH_EXTRA_RUNDIRS ; do + if [ ! -d $DEST/$d ] ; then + echo "Creating $DEST/$d" + mkdir $DEST/$d fi done echo "Installing binaries..." @@ -15,7 +14,7 @@ mkdir -p $DEST/{bin,lib} cp -aL run/bin/* $DEST/bin/ cp -aL run/lib/* $DEST/lib/ echo "Installing config files..." -for a in "$@" ; do +for a in $SH_CONFIGS ; do if [ -f run/cf/$a ] ; then if [ ! -f $DEST/cf/$a ] ; then echo "cf/$a: new, installed"