# substitute the build path with the install path TS=`date -u '+%Y%m%d%H%M%S'` while read src dst do if [ -f $dest ] ; then cmp -s $src $dst if [ $? != 0 ] ; then mv $dest ${dest}.old-${TS} echo "EXISTING FILE RENAMED: $dst => ${dest}.old-${TS}" fi fi sed -e "s#@CLIENT_BASEDIR@#$CLIENT_BASEDIR#g" $src > $dst || exit 2 done exit 0