4 echo "Installing to $DEST"
5 for d in "" cf $SH_EXTRA_RUNDIRS ; do
6 if [ ! -d $DEST/$d ] ; then
7 echo "Creating $DEST/$d"
11 for d in $SH_INSTALL_RUNDIRS ; do
12 echo "Installing to $DEST/$d"
15 cp -aL run/$d/* $DEST/$d/
17 echo "Installing config files..."
18 for a in $SH_CONFIGS ; do
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