]> mj.ucw.cz Git - libucw.git/commitdiff
Install libraries as well. Closes bug #318.
authorMartin Mares <mj@ucw.cz>
Thu, 10 Oct 2002 19:52:40 +0000 (19:52 +0000)
committerMartin Mares <mj@ucw.cz>
Thu, 10 Oct 2002 19:52:40 +0000 (19:52 +0000)
build/installer

index 02eb25524ba258cce88853c5a35fde7a9680f21b..aff3b0d2a38e53b274244a23805fcfa51403dbbc 100755 (executable)
@@ -2,13 +2,15 @@
 set -e
 DEST=`eval echo $1`
 echo "Installing to $DEST"
-if [ ! -d $DEST/bin ] ; then
+if [ ! -d $DEST/cf ] ; then
        echo "Creating $DEST and the whole directory hierarchy under it."
-       mkdir -p $DEST/{bin,cf,db,index,log,tmp}
+       mkdir -p $DEST/{cf,db,index,log,tmp}
 fi
 echo "Installing binaries..."
-rm -f $DEST/bin/*
-cp run/bin/* $DEST/bin/
+rm -rf $DEST/{bin,lib}
+mkdir -p $DEST/{bin,lib}
+cp -a run/bin/* $DEST/bin/
+cp -a run/lib/* $DEST/lib/
 echo "Installing config files..."
 for a in cf/* ; do
        if [ -f $a ] ; then