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

This commit is contained in:
Andrius Štikonas 2009-06-25 00:35:18 +03:00
parent 70b7d35718
commit 00ddcdf7c0
1 changed files with 1 additions and 2 deletions

3
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"