From 997b2c7f25351a20ce8608430b44df954798d146 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Wed, 8 Sep 2010 20:14:27 +0300 Subject: [PATCH] Add backport script. --- backport | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 backport diff --git a/backport b/backport new file mode 100755 index 0000000..6e9eb98 --- /dev/null +++ b/backport @@ -0,0 +1,17 @@ +#!/bin/bash + +source "`dirname $0`/ths-variables" + +./poupdate -NS trunk stable pot-stable +./poupdate -NS doc-trunk doc-stable doc-pot-stable + +echo -e $BLUE"Running sed script on all files..."$ENDCOLOR + +for po in `find stable doc-stable -follow -name "*.po"`; do + sed -ie 's/\"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : n%10==1 \&\& n%100!=11 ? 1 : n\"/\"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : n%10==1 \&\& n%100!=11 ? 1 : n%\"/ +s/\"%10>=2 \&\& (n%100<10 || n%100>=20) ? 2 \: 3);\\n\"/\"10>=2 \&\& (n%100<10 || n%100>=20) ? 2 \: 3);\\n\"/ +/\"Language: lt\\n\"/d +/\"Content-Transfer-Encoding: 8bit\\n\"/ a\ +\"Language: lt\\n\"' "$po" + rm "$po"e +done