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