#!/bin/bash . ../common/unpack.sh release=$1 if [ -z "$release" ] then echo "Syntax: $0 " exit 1 fi for platform in linux-i686 win32 mac do rm -rf source/* # unpack_build platform dir_name pkg_file 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 locale in $locales do rm -rf target/* unpack_build ${platform} target $release/*.${locale}.${platform}.* # 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}.${locale}.diff done done exit 0