Browse Source

Unwrap po files before using diff on them.

master
Andrius Štikonas 10 years ago
parent
commit
91c63a5756
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      pack

+ 5
- 2
pack View File

@@ -42,9 +42,10 @@ for BRANCH in $TRUNK $BRANCHES; do
bfile=`basename $file`
echo -n "Processing catalog $bfile... ";
d=`echo "$bfile" | sed "s/.$LCODE.po//"`
$MSGMERGE --silent $file -U $file
$MSGMERGE --no-wrap --silent $file $file -o $file.temp
if [ -f "$BRANCH/$d/$LCODE.po" ]; then
if ! $DIFF -q "$file" "$BRANCH/$d/$LCODE.po" > /dev/null ; then
$MSGMERGE --no-wrap --silent "$BRANCH/$d/$LCODE.po" "$BRANCH/$d/$LCODE.po" -o "$BRANCH/$d/$LCODE.po.temp"
if ! $DIFF -q "$file.temp" "$BRANCH/$d/$LCODE.po.temp" > /dev/null ; then
mkdir "$LCODE-temp/$d"
cp "$file" "$LCODE-temp/$d/$LCODE.po"
echo -e $GREEN"OK"$ENDCOLOR
@@ -52,6 +53,8 @@ for BRANCH in $TRUNK $BRANCHES; do
else
echo -e $BLUE"Skipping"$ENDCOLOR
fi
rm $file.temp
rm "$BRANCH/$d/$LCODE.po.temp"
else
mkdir -p "$LCODE-temp/$d"
cp "$file" "$LCODE-temp/$d/$LCODE.po"

Loading…
Cancel
Save