X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=build%2Finstaller;h=39154ee072dc8a047e1b310781c80a255317f55f;hb=ddb01cbb4eb8431b042918438e6543003851a87f;hp=3c7d15aff3957e5c6a05e81c48962309343aa75c;hpb=1b0066ef5e5aec110ecfbe1545c46c84dff7315a;p=libucw.git diff --git a/build/installer b/build/installer index 3c7d15af..39154ee0 100755 --- a/build/installer +++ b/build/installer @@ -1,12 +1,11 @@ #!/bin/sh set -e DEST=`eval echo $1` -shift echo "Installing to $DEST" -for d in $DEST/{,cf,db,index,log,tmp} ; do - if [ ! -d $d ] ; then - echo "Creating $d" - mkdir $d +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..." @@ -15,12 +14,12 @@ 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"