X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=inline;f=build%2Finstaller;h=b5bf16f20f9b699d18733b52193cbc4b7097e6a2;hb=bced8a6555af8e0c34d8eb852a2b5ffa33f9006a;hp=164ae2fabcbacb7743a268ede2a3c81f6f92c4f6;hpb=d5e82215ca656a87dc3a9abd37fe8a3b00302be3;p=libucw.git diff --git a/build/installer b/build/installer index 164ae2fa..b5bf16f2 100755 --- a/build/installer +++ b/build/installer @@ -8,25 +8,26 @@ for d in "" cf $SH_EXTRA_RUNDIRS ; do 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/ +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 $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 ] ; then echo "cf/$a: will be regenerated automatically" elif diff -u $DEST/cf/$a run/cf/$a ; then echo "cf/$a: no differences" else echo -n "cf/$a differs, replace it [Yn]? " read x - if [ -z "$x" -o "$x" == "y" -o "$x" == "Y" ] ; then + if [ -z "$x" -o "$x" = "y" -o "$x" = "Y" ] ; then echo "cf/$a: replacing and keeping the old version as cf/$a.old" mv $DEST/cf/$a $DEST/cf/$a.old cp run/cf/$a $DEST/cf/$a