2007-03-22 10:30:00 -07:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
. ../common/unpack.sh
|
|
|
|
|
|
|
|
release=$1
|
|
|
|
|
|
|
|
if [ -z "$release" ]
|
|
|
|
then
|
|
|
|
echo "Syntax: $0 <release_dir>"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
for platform in linux-i686 win32 mac
|
|
|
|
do
|
|
|
|
rm -rf source/*
|
|
|
|
# unpack_build platform dir_name pkg_file
|
2007-12-11 10:17:27 -08:00
|
|
|
unpack_build $platform source $release/*.en-US.${platform}.* en-US
|
2007-03-22 10:30:00 -07:00
|
|
|
# check for read-only files
|
|
|
|
find "./source" -not -perm -u=w -exec echo "FAIL read-only file" {} \;
|
2007-11-15 07:56:57 -08:00
|
|
|
|
|
|
|
for package in `find $release -maxdepth 1 -iname "*.$platform.*" | \
|
|
|
|
grep -v 'en-US'`
|
2007-03-22 10:30:00 -07:00
|
|
|
do
|
2007-11-15 07:56:57 -08:00
|
|
|
# strip the directory portion
|
|
|
|
package=`basename $package`
|
2007-11-15 18:41:28 -08:00
|
|
|
# this cannot be named $locale, because unpack_build will overwrite it
|
2007-11-16 02:15:54 -08:00
|
|
|
l=`echo $package | sed -e "s/\.${platform}.*//" -e 's/.*\.//'`
|
2007-03-22 10:30:00 -07:00
|
|
|
rm -rf target/*
|
2007-12-11 10:17:27 -08:00
|
|
|
unpack_build $platform target $release/$package $l
|
2007-03-22 10:30:00 -07:00
|
|
|
# check for read-only files
|
|
|
|
find "./target" -not -perm -u=w -exec echo "FAIL read-only file" {} \;
|
|
|
|
mkdir -p $release/diffs
|
2007-11-15 18:41:28 -08:00
|
|
|
diff -r source target > $release/diffs/$platform.$l.diff
|
2007-03-22 10:30:00 -07:00
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
exit 0
|