1#!/bin/bash 2 3# set -x 4 5ICUROOT="$(dirname "$0")/.." 6 7if [ $# -lt 2 ]; 8then 9 echo "Usage: "$0" icubuilddir1 icubuilddir2" >&2 10 echo "$0 compare data files of all builds inside two icu build directories." >&2 11 echo "These files were previously archived by backup_outdir in scripts/copy_data.sh." >&2 12 exit 1 13fi 14 15DIR1=$1 16DIR2=$2 17 18echo "#######################################################" 19echo " ICUDT*L.DAT FILE SIZE REPORT" 20echo "#######################################################" 21for build in "chromeos" "common" "cast" "android" "ios" "flutter" "flutter_desktop" 22do 23 ICUDT_L_DAT1=`ls ${DIR1}/dataout/${build}/data/out/tmp/icudt*l.dat` 24 ICUDT_L_DAT2=`ls ${DIR2}/dataout/${build}/data/out/tmp/icudt*l.dat` 25 STAT1=`stat --printf="%s" ${ICUDT_L_DAT1}` 26 STAT2=`stat --printf="%s" ${ICUDT_L_DAT2}` 27 SIZEDIFF=`expr $STAT2 - $STAT1` 28 echo $build $STAT1 $STAT2 $SIZEDIFF 29done 30 31echo "#######################################################" 32echo " PER BUILD REPORT" 33echo "#######################################################" 34for build in "chromeos" "common" "cast" "android" "android_small" "android_extra" "ios" "flutter" "flutter_desktop" 35do 36 $ICUROOT/scripts/diff_data.sh $build ${DIR1} ${DIR2} 37done 38