bug 403770: update testing/release to support bz2 packages. r=rhelmer, patch=me

This commit is contained in:
bhearsum@mozilla.com 2007-11-15 07:56:57 -08:00
parent bcc923eced
commit c8b37f2ad5
2 changed files with 18 additions and 5 deletions

View File

@ -34,7 +34,16 @@ unpack_build () {
fi
;;
linux-i686|linux|Linux_x86-gcc|Linux_x86-gcc3)
tar xfz ../"$pkg_file" > /dev/null
if `echo $pkg_file | grep -q "tar.gz"`
then
tar xfz ../"$pkg_file" > /dev/null
elif `echo $pkg_file | grep -q "tar.bz2"`
then
tar xfj ../"$pkg_file" > /dev/null
else
echo "Unknown package type for file: $pkg_file"
exit 1
fi
;;
esac

View File

@ -17,15 +17,19 @@ do
unpack_build $platform source $release/*.en-US.${platform}.*
# check for read-only files
find "./source" -not -perm -u=w -exec echo "FAIL read-only file" {} \;
locales=`ls $release/*.${platform}.* | grep -v en-US | cut -d\. -f8`
for l in $locales
for package in `find $release -maxdepth 1 -iname "*.$platform.*" | \
grep -v 'en-US'`
do
# strip the directory portion
package=`basename $package`
locale=`echo $package | sed -e 's/\.$platform.*//' -e 's/.*\.//'`
rm -rf target/*
unpack_build ${platform} target $release/*.${l}.${platform}.*
unpack_build $platform target $release/$package
# check for read-only files
find "./target" -not -perm -u=w -exec echo "FAIL read-only file" {} \;
mkdir -p $release/diffs
diff -r source target > $release/diffs/${platform}.${l}.diff
diff -r source target > $release/diffs/$platform.$locale.diff
done
done