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

Este commit está contenido en:
Andrius Štikonas 2009-06-25 00:35:18 +03:00
padre 70b7d35718
commit 00ddcdf7c0
Se han modificado 1 ficheros con 1 adiciones y 2 borrados

3
pack
Ver fichero

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