]> mj.ucw.cz Git - libucw.git/blobdiff - build/installer
Added obj_write_nocheck which writes the object as quickly as possible,
[libucw.git] / build / installer
index 607c9f74b3140aab80a628f8a6b026fee35a0e2f..12e54772a233e7c5e93b2d54df164a5d9f7256ce 100755 (executable)
@@ -1,14 +1,16 @@
 #!/bin/sh
 set -e
-DEST=$1
+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 -aL run/bin/* $DEST/bin/
+cp -aL run/lib/* $DEST/lib/
 echo "Installing config files..."
 for a in cf/* ; do
        if [ -f $a ] ; then