Skip to content

Commit 5692460

Browse files
committed
Only commit new po file if something really changed
1 parent 2762a1e commit 5692460

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

scripts/update.sh

+10-3
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,18 @@ then
2222
scripts/runcheckouts.sh
2323
scripts/extract.sh
2424

25-
tx push -s
26-
tx pull -a --mode reviewed
25+
# Only commit if something substantial changed (not just the creation timestamp)
26+
if [[ `git diff cc/i18n/po/en/cc_org.po|grep '^\+'|wc -l` == '2' ]]
27+
then
28+
git checkout cc/i18n/po/en/cc_org.po
29+
else
30+
git commit -m "New strings extracted from sources" cc/i18n/po/en/cc_org.po
31+
tx push -s
32+
fi
2733

28-
git commit -m "New strings extracted from sources" cc/i18n/po/en/cc_org.po
34+
tx pull -a --mode reviewed
2935
git commit -a -m "Latest i18n updates from Transifex"
36+
3037
git push
3138

3239
# Update toplevel repository to point to latest i18n rev

0 commit comments

Comments
 (0)