Browse Source

Fix a bug in pack script. Files in repository should not be removed.

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

+ 1
- 2
pack View File

@@ -44,7 +44,7 @@ for BRANCH in $TRUNK $BRANCHES; do
d=`echo "$bfile" | sed "s/.$LCODE.po//"`
dirdomain=`echo wesnoth-$d | sed "s/wesnoth-wesnoth/wesnoth/"`
if [ -f "$BRANCH/$dirdomain/$LCODE.po" ]; then
if ! $DIFF -q "$file" "$BRANCH/$dirdomain/$LCODE.po" > /dev/null ; then
if ! $DIFF -q "$file" "$BRANCH/$dirdomain/$LCODE.po" > /dev/null ; then
mkdir "$LCODE-temp/$dirdomain"
cp "$file" "$LCODE-temp/$dirdomain/$LCODE.po"
echo -e $GREEN"OK"$ENDCOLOR
@@ -52,7 +52,6 @@ for BRANCH in $TRUNK $BRANCHES; do
else
echo -e $BLUE"Skipping"$ENDCOLOR
fi
rm "$BRANCH/$dirdomain/$LCODE.po"
else
mkdir -p "$LCODE-temp/$dirdomain"
cp "$file" "$LCODE-temp/$dirdomain/$LCODE.po"

Loading…
Cancel
Save