while read src dst do X=`basename $dst` if [ "$X" = "texmf.cnf.orig" ]; then sed -e "s#@CLIENT_BASEDIR@#$CLIENT_BASEDIR#g" $src > $dst || exit 2 else cp $src $dst fi X=`echo $dst | sed -e 's/\.orig$//'` if [ ! -r "$X" ]; then cp $dst $X chmod 0644 $X fi done exit 0