X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=build%2Finstaller;h=b06ca50947c45b4e5b89301abd27284f3ac16c5b;hb=d81211bb8cb5fa357e7a6046e284ba0ff5a6cc28;hp=30aef1e137e678a905ae7faf86d2722be9cfa0b8;hpb=76ed5e8a1846c9e98cce1d62eb8d01b16804c11d;p=libucw.git diff --git a/build/installer b/build/installer index 30aef1e1..b06ca509 100755 --- a/build/installer +++ b/build/installer @@ -1,19 +1,21 @@ #!/bin/sh set -e DEST=`eval echo $1` -shift echo "Installing to $DEST" -if [ ! -d $DEST/cf ] ; then - echo "Creating $DEST and the whole directory hierarchy under it." - mkdir -p $DEST/{cf,db,index,log,tmp} -fi -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 "" cf $SH_EXTRA_RUNDIRS ; do + if [ ! -d $DEST/$d ] ; then + echo "Creating $DEST/$d" + mkdir -p $DEST/$d + fi +done +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"