]> mj.ucw.cz Git - libucw.git/commitdiff
Allow submakefiles to add their own installation directories and to override
authorMartin Mares <mj@ucw.cz>
Mon, 15 Sep 2003 07:45:47 +0000 (07:45 +0000)
committerMartin Mares <mj@ucw.cz>
Mon, 15 Sep 2003 07:45:47 +0000 (07:45 +0000)
the run/bin directory. Propagate the directories to the installer.

build/installer

index 3c7d15aff3957e5c6a05e81c48962309343aa75c..be4a2bbd5e5d8c24591ae60c1bc02968e8cb5465 100755 (executable)
@@ -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"