-for d in $DEST/{,cf,db,index,log,tmp} ; do
- if [ ! -d $d ] ; then
- echo "Creating $d"
- mkdir $d
+for d in "" cf $SH_EXTRA_RUNDIRS ; do
+ if [ ! -d $DEST/$d ] ; then
+ echo "Creating $DEST/$d"
+ mkdir -p $DEST/$d
cp -aL run/bin/* $DEST/bin/
cp -aL run/lib/* $DEST/lib/
echo "Installing config files..."
cp -aL run/bin/* $DEST/bin/
cp -aL run/lib/* $DEST/lib/
echo "Installing config files..."
if [ -f run/cf/$a ] ; then
if [ ! -f $DEST/cf/$a ] ; then
echo "cf/$a: new, installed"
cp run/cf/$a $DEST/cf/$a
if [ -f run/cf/$a ] ; then
if [ ! -f $DEST/cf/$a ] ; then
echo "cf/$a: new, installed"
cp run/cf/$a $DEST/cf/$a
echo "cf/$a: will be regenerated automatically"
elif diff -u $DEST/cf/$a run/cf/$a ; then
echo "cf/$a: no differences"
echo "cf/$a: will be regenerated automatically"
elif diff -u $DEST/cf/$a run/cf/$a ; then
echo "cf/$a: no differences"