зеркало из https://github.com/mozilla/pjs.git
bug 403770: update testing/release to support bz2 packages. r=rhelmer, patch=me
This commit is contained in:
Родитель
21e0b007f4
Коммит
2972bfa2cf
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче