From 1e07829537f822428bb79d4c0e979a8d645ce02c Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Fri, 24 Sep 2010 05:14:18 +0000 Subject: [PATCH] Git edition --- wwwtools/update-nls-www | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/wwwtools/update-nls-www b/wwwtools/update-nls-www index 3624d32..9448e50 100755 --- a/wwwtools/update-nls-www +++ b/wwwtools/update-nls-www @@ -35,11 +35,11 @@ for branch in $active_branches; do PGSRC=$CVSDIR/postgresql-$branch + pgsrc_updated=false pushd $PGSRC - cvs -q update | tee "$tmp" - if egrep -q '^C ' "$tmp"; then - rm $(sed -n 's/^C //p' "$tmp") - cvs -q update | tee "$tmp" + git pull + if [ $(git rev-parse --verify --quiet HEAD) != $(git rev-parse --verify --quiet ORIG_HEAD) ]; then + pgsrc_updated=true fi popd @@ -51,7 +51,7 @@ for branch in $active_branches; do $MYDIR/../cp-po -f -k $CVSDIR/messages-$branch $PGSRC.work fi - if [ "$force" != true ] && ! egrep -q '^(U|P) ' "$tmp"; then + if [ "$force" != true ] && ! egrep -q '^(U|P) ' "$tmp" && ! $pgsrc_updated; then continue fi -- 2.39.5