From cf86c73b5d9f789632e1100557b02182c42eeb39 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Tue, 29 May 2012 13:01:13 +0300 Subject: [PATCH] Updates for pgtranslation Git conversion --- wwwtools/update-nls-www | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/wwwtools/update-nls-www b/wwwtools/update-nls-www index f7a5f29..d9d1952 100755 --- a/wwwtools/update-nls-www +++ b/wwwtools/update-nls-www @@ -40,8 +40,6 @@ fi flock -n 9 || exit 0 for branch in $active_branches; do - tmp=`mktemp /tmp/$me.XXXXXX` - PGSRC=$CVSDIR/postgresql-$branch pgsrc_updated=false @@ -55,17 +53,21 @@ for branch in $active_branches; do rm -rf $PGSRC.work cp -R $PGSRC $PGSRC.work + pgmessages_updated=false if [ -d "$CVSDIR/messages-$branch" ]; then - (cd $CVSDIR/messages-$branch; cvs -q update) | tee -a "$tmp" + pushd $CVSDIR/messages-$branch + git pull + if [ $(git rev-parse --verify --quiet HEAD) != $(git rev-parse --verify --quiet ORIG_HEAD) ]; then + pgmessages_updated=true + fi + popd $MYDIR/../cp-po -f -k $CVSDIR/messages-$branch $PGSRC.work fi - if [ "$force" != true ] && ! egrep -q '^(U|P) ' "$tmp" && ! $pgsrc_updated; then + if [ "$force" != true ] && ! $pgmessages_updated && ! $pgsrc_updated; then continue fi - rm -f "$tmp" - pushd $PGSRC.work ./configure --prefix=$MYDIR/pg-install --cache=/dev/null --enable-nls --with-includes=/usr/local/include --with-libraries=/usr/local/lib \ --with-perl --with-tcl --without-tk -- 2.39.5