diff --git a/compile b/compile index d5d1962..327a72c 100755 --- a/compile +++ b/compile @@ -30,8 +30,9 @@ for BRANCH in $TRUNK $BRANCHES; do fi for file in `ls $DIR`; do echo "Compiling $file"; - $MSGFMT "$DIR/$file" -o "$MDIR/$BRANCH/`echo $file | sed "s/."$LCODE".po/.mo/"`" + $MSGFMT "$DIR/$file" -o "$MDIR/$BRANCH/`echo wesnoth-$file | sed "s/."$LCODE".po/.mo/" | sed "s/wesnoth-wesnoth//"`" done + rm "$MDIR/$BRANCH/wesnoth-manpages.mo" "$MDIR/$BRANCH/wesnoth-manual.mo" done echo -e $GREEN"Finished."$ENDCOLOR diff --git a/pack b/pack index 7044fdc..4ec9fab 100755 --- a/pack +++ b/pack @@ -38,25 +38,27 @@ for BRANCH in $TRUNK $BRANCHES; do echo -e "Branch: $BLUE$BRANCH"$ENDCOLOR DIR="$PREFIX-$BRANCH" mkdir "$LCODE-temp" - for file in `ls $DIR/wesnoth*.$LCODE.po`; do + for file in `find $DIR -name *.lt.po`; do bfile=`basename $file` echo -n "Processing catalog $bfile... "; d=`echo "$bfile" | sed "s/.$LCODE.po//"` - $MSGMERGE --no-wrap --silent $file $file -o $file.temp - if [ -f "$BRANCH/$d/$LCODE.po" ]; 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" + dirdomain=`echo wesnoth-$d | sed "s/wesnoth-wesnoth/wesnoth/"` + $MSGMERGE --silent "$file" "$file" -o $file.temp + mv $file.temp $file + if [ -f "$BRANCH/$dirdomain/$LCODE.po" ]; then + $MSGMERGE --silent "$BRANCH/$dirdomain/$LCODE.po" "$BRANCH/$dirdomain/$LCODE.po" -o "$BRANCH/$dirdomain/$LCODE.po.temp" + if ! $DIFF -q "$file" "$BRANCH/$dirdomain/$LCODE.po.temp" > /dev/null ; then + mkdir "$LCODE-temp/$dirdomain" + cp "$file" "$LCODE-temp/$dirdomain/$LCODE.po" echo -e $GREEN"OK"$ENDCOLOR counter=$(($counter+1)) else echo -e $BLUE"Skipping"$ENDCOLOR fi - rm $file.temp "$BRANCH/$d/$LCODE.po.temp" + rm "$BRANCH/$dirdomain/$LCODE.po.temp" else - mkdir -p "$LCODE-temp/$d" - cp "$file" "$LCODE-temp/$d/$LCODE.po" + mkdir -p "$LCODE-temp/$dirdomain" + cp "$file" "$LCODE-temp/$dirdomain/$LCODE.po" echo -e $GREEN"OK"$ENDCOLOR counter=$(($counter+1)) fi diff --git a/statistics b/statistics index 1ae2b83..017c1b0 100755 --- a/statistics +++ b/statistics @@ -188,15 +188,9 @@ for BRANCH in $TRUNK $BRANCHES; do echo "