From: Peter Eisentraut Date: Fri, 24 Sep 2010 05:14:18 +0000 (+0000) Subject: Git edition X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=1e07829537f822428bb79d4c0e979a8d645ce02c;p=pgtranslation%2Fadmin.git Git edition --- 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