aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYongqin Liu <yongqin.liu@linaro.org>2016-07-08 15:13:55 +0800
committerYongqin Liu <yongqin.liu@linaro.org>2016-07-08 15:13:55 +0800
commit2e215e82c14634242fd39586a1521f8c7b1cbc86 (patch)
tree2e3fd76a719fd9d64f5c8df176737f38dc41faf8
parent7aad212c5ee4c7002e5ded5b33bcbe20ac51f5d3 (diff)
build-android: fix a problem for Changelog capture
Both "files changed" and "file changed" need to be captured Change-Id: Ief468225a9f02cc0b11d781b3ce4256dde584170 Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
-rw-r--r--build-scripts/build-android6
1 files changed, 3 insertions, 3 deletions
diff --git a/build-scripts/build-android b/build-scripts/build-android
index d8c2ac9..b6d188c 100644
--- a/build-scripts/build-android
+++ b/build-scripts/build-android
@@ -110,9 +110,9 @@ else
echo ""
fi;
fi' | cat > temp_changelog.txt
- files_changed=`add_changes \`grep "files changed" temp_changelog.txt | cut -d " " -f2\``
- insertions=`add_changes \`grep "files changed" temp_changelog.txt | cut -d " " -f5\``
- deletions=`add_changes \`grep "files changed" temp_changelog.txt | cut -d " " -f7\``
+ files_changed=`add_changes \`grep -e "file changed" -e "files changed" temp_changelog.txt | cut -d " " -f2\``
+ insertions=`add_changes \`grep -e "file changed" -e "files changed" temp_changelog.txt | cut -d " " -f5\``
+ deletions=`add_changes \`grep -e "file changed" -e "files changed" temp_changelog.txt | cut -d " " -f7\``
echo "=====================================================================" > changelog.txt
echo "=====================================================================" >> changelog.txt
echo "$files_changed files changed, $insertions insertions(+), $deletions deletions(-)" >> changelog.txt