Merge "Propose translation update: Handle PO-Revision-Date"

This commit is contained in:
Jenkins 2014-04-15 17:17:47 +00:00 committed by Gerrit Code Review
commit fdddcd6b97
2 changed files with 7 additions and 5 deletions

View File

@ -59,11 +59,12 @@ fi
# Add all changed files to git
git add $PROJECT/locale/*
# Don't send files where the only things that have changed are the
# creation date, the version number or comment lines.
# Don't send files where the only things which have changed are the
# creation date, the version number, the revision date, or comment
# lines.
for f in `git diff --cached --name-only`
do
if [ `git diff --cached $f |egrep -v "(POT-Creation-Date|Project-Id-Version|^\+{3}|^\-{3}|^[-+]#)" | egrep -c "^[\-\+]"` -eq 0 ]
if [ `git diff --cached $f |egrep -v "(POT-Creation-Date|Project-Id-Version|PO-Revision-Date|^\+{3}|^\-{3}|^[-+]#)" | egrep -c "^[\-\+]"` -eq 0 ]
then
git reset -q $f
git checkout -- $f

View File

@ -95,10 +95,11 @@ do
done
# Don't send files where the only things which have changed are the
# creation date, the version number or comment lines.
# creation date, the version number, the revision date, or comment
# lines.
for f in `git diff --cached --name-only`
do
if [ `git diff --cached $f |egrep -v "(POT-Creation-Date|Project-Id-Version|^\+{3}|^\-{3}|^[-+]#)" | egrep -c "^[\-\+]"` -eq 0 ]
if [ `git diff --cached $f |egrep -v "(POT-Creation-Date|Project-Id-Version|PO-Revision-Date|^\+{3}|^\-{3}|^[-+]#)" | egrep -c "^[\-\+]"` -eq 0 ]
then
git reset -q $f
git checkout -- $f