From fea67af4dff423b6f54287c0ab550e38023a287a Mon Sep 17 00:00:00 2001 From: Thomas Keller Date: Wed, 9 Feb 2011 00:48:20 +0100 Subject: [PATCH] Add a command to merge pot changes into the individual po files --- release-script | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/release-script b/release-script index 8e2faff..d47ba82 100755 --- a/release-script +++ b/release-script @@ -3,8 +3,9 @@ last="$1" new="$2" echo "xgettext -o idf.pot -p ./IDF/locale --force-po --from-code=UTF-8 --keyword --keyword=__ --keyword=_n:1,2 -L PHP ./IDF/*.php" echo "find ./ -iname \"*.php\" -exec xgettext -o idf.pot -p ./IDF/locale/ --from-code=UTF-8 -j --keyword --keyword=__ --keyword=_n:1,2 -L PHP {} \;" +echo 'for pofile in `ls ./IDF/locale/*/idf.po`; do msgmerge -U $pofile ./IDF/locale/idf.pot; done' echo "# git tag v$new" echo "git archive --format=zip --prefix=indefero-$new/ v$new > indefero-$new.zip" echo "git log --no-merges v$new ^v$last > ChangeLog-$new" echo "git shortlog --no-merges v$new ^v$last > ShortLog" -echo "git diff --stat --summary -M v$last v$new > diffstat-$new" \ No newline at end of file +echo "git diff --stat --summary -M v$last v$new > diffstat-$new"