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
$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