aboutsummaryrefslogtreecommitdiff
path: root/build/hash_gen.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build/hash_gen.sh')
-rwxr-xr-xbuild/hash_gen.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/build/hash_gen.sh b/build/hash_gen.sh
index 9bb7e830..536cdedc 100755
--- a/build/hash_gen.sh
+++ b/build/hash_gen.sh
@@ -20,4 +20,8 @@ if [ $# != 3 ]; then
echo "Usage: hash_gen.sh <api_path> <latest-version> <hash_file_path>"
exit 1
fi
+
+# This adds a new hash to the file if one already exists.
+# We can have multiple hashes in a hash file so we can still identify previous
+# iterations of this interfaces that were released.
(cd $1 && find ./ -name "*.aidl" -print0 | LC_ALL=C sort -z | xargs -0 sha1sum && echo $2) | sha1sum | cut -d " " -f 1 >> $3