X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=inline;f=build%2Finstaller;h=39154ee072dc8a047e1b310781c80a255317f55f;hb=ddb01cbb4eb8431b042918438e6543003851a87f;hp=30aef1e137e678a905ae7faf86d2722be9cfa0b8;hpb=76ed5e8a1846c9e98cce1d62eb8d01b16804c11d;p=libucw.git diff --git a/build/installer b/build/installer index 30aef1e1..39154ee0 100755 --- a/build/installer +++ b/build/installer @@ -1,24 +1,25 @@ #!/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" cp run/cf/$a $DEST/cf/$a - elif [ $a == catalog-rules ] ; then + elif [ $a == catalog-rules -o $a == url-equiv ] ; then echo "cf/$a: will be regenerated automatically" elif diff -u $DEST/cf/$a run/cf/$a ; then echo "cf/$a: no differences"