5 echo "Installing to $DEST"
6 for d in $DEST/{,cf,db,index,log,tmp} ; do
12 echo "Installing binaries..."
13 rm -rf $DEST/{bin,lib}
14 mkdir -p $DEST/{bin,lib}
15 cp -aL run/bin/* $DEST/bin/
16 cp -aL run/lib/* $DEST/lib/
17 echo "Installing config files..."
19 if [ -f run/cf/$a ] ; then
20 if [ ! -f $DEST/cf/$a ] ; then
21 echo "cf/$a: new, installed"
22 cp run/cf/$a $DEST/cf/$a
23 elif [ $a == catalog-rules ] ; then
24 echo "cf/$a: will be regenerated automatically"
25 elif diff -u $DEST/cf/$a run/cf/$a ; then
26 echo "cf/$a: no differences"
28 echo -n "cf/$a differs, replace it [Yn]? "
30 if [ -z "$x" -o "$x" == "y" -o "$x" == "Y" ] ; then
31 echo "cf/$a: replacing and keeping the old version as cf/$a.old"
32 mv $DEST/cf/$a $DEST/cf/$a.old
33 cp run/cf/$a $DEST/cf/$a
35 echo "cf/$a: installing the new version as cf/$a.dist"
36 cp run/cf/$a $DEST/cf/$a.dist