# substitute the build path with the install path while read src dst do if [ ! -f $dest ] ; then sed -e "s#@CLIENT_BASEDIR@#$CLIENT_BASEDIR#g" $src > $dst || exit 2 else cmp -s $src $dst if [ $? != 0 ] ; then new=${dst}.new sed -e "s#@CLIENT_BASEDIR@#$CLIENT_BASEDIR#g" $src > $new || exit 2 echo "EXISTING FILE PRESERVED: $dst (new version: $new)" fi fi done exit 0