]> mj.ucw.cz Git - libucw.git/blobdiff - build/installer
Makefile: fixed compilation of tests
[libucw.git] / build / installer
index 3c7d15aff3957e5c6a05e81c48962309343aa75c..b06ca50947c45b4e5b89301abd27284f3ac16c5b 100755 (executable)
@@ -1,21 +1,21 @@
 #!/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 -p $DEST/$d
        fi
 done
-echo "Installing binaries..."
-rm -rf $DEST/{bin,lib}
-mkdir -p $DEST/{bin,lib}
-cp -aL run/bin/* $DEST/bin/
-cp -aL run/lib/* $DEST/lib/
+for d in $SH_INSTALL_RUNDIRS ; do
+       echo "Installing to $DEST/$d"
+       rm -rf $DEST/$d
+       mkdir -p $DEST/$d
+       cp -aL run/$d/* $DEST/$d/
+done
 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"