2006-07-29 01:00:11 +04:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
. ../common/unpack.sh
|
|
|
|
|
|
|
|
release=$1
|
|
|
|
|
|
|
|
if [ -z "$release" ]
|
|
|
|
then
|
|
|
|
echo "Syntax: $0 <release_dir>"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2006-12-09 03:16:05 +03:00
|
|
|
for platform in linux-i686 win32 mac
|
2006-07-29 01:00:11 +04:00
|
|
|
do
|
|
|
|
rm -rf source/*
|
|
|
|
# unpack_build platform dir_name pkg_file
|
|
|
|
unpack_build $platform source $release/*.en-US.${platform}.*
|
|
|
|
locales=`ls $release/*.${platform}.* | grep -v en-US | cut -d\. -f5`
|
|
|
|
for locale in $locales
|
|
|
|
do
|
|
|
|
rm -rf target/*
|
|
|
|
unpack_build ${platform} target $release/*.${locale}.${platform}.*
|
2006-10-12 06:33:25 +04:00
|
|
|
mkdir -p $release/diffs
|
|
|
|
diff -r source target > $release/diffs/${platform}.${locale}.diff
|
2006-07-29 01:00:11 +04:00
|
|
|
done
|
|
|
|
done
|