X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=build%2Finstaller;h=12e54772a233e7c5e93b2d54df164a5d9f7256ce;hb=5235a735d59c73f528a4b1e9d212d63673005ddb;hp=607c9f74b3140aab80a628f8a6b026fee35a0e2f;hpb=e6c909a9dca799f278fcf84efc96fe39d308d33b;p=libucw.git diff --git a/build/installer b/build/installer index 607c9f74..12e54772 100755 --- a/build/installer +++ b/build/installer @@ -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