X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=build%2Finstaller;h=164ae2fabcbacb7743a268ede2a3c81f6f92c4f6;hb=a0de81cbe1f6282fdc13f6e61d07ebf0ae1c0f4c;hp=30aef1e137e678a905ae7faf86d2722be9cfa0b8;hpb=76ed5e8a1846c9e98cce1d62eb8d01b16804c11d;p=libucw.git diff --git a/build/installer b/build/installer index 30aef1e1..164ae2fa 100755 --- a/build/installer +++ b/build/installer @@ -1,19 +1,20 @@ #!/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 +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/ 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"