4 echo "Installing to $DEST"
5 if [ ! -d $DEST/bin ] ; then
6 echo "Creating $DEST and the whole directory hierarchy under it."
7 mkdir -p $DEST/{bin,cf,db,index,log,tmp}
9 echo "Installing binaries..."
11 cp run/bin/* $DEST/bin/
12 echo "Installing config files..."
15 if [ ! -f $DEST/$a ] ; then
16 echo "$a: new, installed"
18 elif diff -u $DEST/$a $a ; then
19 echo "$a: no differences"
21 echo -n "$a differs, replace it [Yn]? "
23 if [ -z "$x" -o "$x" == "y" -o "$x" == "Y" ] ; then
24 echo "$a: replacing and keeping the old version as $a.old"
25 mv $DEST/$a $DEST/$a.old
28 echo "$a: installing the new version as $a.dist"