aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRob Savoye <rob.savoye@linaro.org>2015-03-09 15:13:56 -0600
committerRob Savoye <rob.savoye@linaro.org>2015-03-09 15:13:56 -0600
commitc75c229a2907b1ad3605d295e2eb0bc4a809c48b (patch)
treef684faa46d00cf3d4bc4e96786bdb6f1d0eaf15c /scripts
parent4bbd68c545a8950bb9c0fde9195f76dc6c24bee3 (diff)
handle compressed sum files
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/report.sh21
1 files changed, 9 insertions, 12 deletions
diff --git a/scripts/report.sh b/scripts/report.sh
index e0404375..e671e93c 100755
--- a/scripts/report.sh
+++ b/scripts/report.sh
@@ -436,7 +436,11 @@ else
fi
if test x"${2}" != x; then
- sumname="$2"
+ if test `echo $2 | grep -c "\.sum\$"` -eq 0; then
+ sumname="$2.sum"
+ else
+ sumname="$2"
+ fi
else
sumname="gcc.sum"
fi
@@ -445,7 +449,7 @@ builds="`find ${toplevel} -type d`"
declare -a sums=()
i=0
for rev in ${builds}; do
- sums[$i]="`find ${rev} -name ${sumname}`"
+ sums[$i]="`find ${rev} -name ${sumname}\*`"
i="`expr $i + 1`"
done
@@ -455,7 +459,7 @@ i=0
for sum in ${sums[@]}; do
dirs[$i]=`dirname ${sum}`
# Temporarily uncompress ${sum} if needed.
- if test `echo ${sum} | grep -c "\.xz$"` -gt 0; then
+ if test `echo ${sum} | grep -c "\.xz"` -gt 0; then
file=/tmp/report-$i-$$
xzcat ${sum} > ${file}
sums[$i]=$file
@@ -569,15 +573,8 @@ done
# sed -e "1,${lineno}d" ${prev}/manifest.txt
#fi
-#echo "Compressing sum files, will take a little while"
-#for sum in ${sums}; do
-# if test `echo ${sum} | grep -c "\.xz$"` -gt 0; then
-# file="`echo ${sum} | sed -e 's:\.xz::'`"
-# printf "."
-# xz ${file} 2>&1 > /dev/null
-# fi
-#done
-#echo ""
+echo "Compressing sum files, will take a little while"
+xz ${sums}
# echo ${returnstr}
exit ${returncode}