summaryrefslogtreecommitdiffstats
path: root/update-makefiles.sh
diff options
context:
space:
mode:
authorEnrico Granata <egranata@google.com>2016-12-22 11:42:13 -0800
committerIliyan Malchev <malchev@google.com>2016-12-22 21:59:26 +0000
commit51f94235b942db6afbb3674990628bb4bfa07063 (patch)
tree34292f1f1d331f297bce58f14a7e15581f8a2926 /update-makefiles.sh
parentac7f1d21e8fec7f50efb2d21facf01521ccd9df2 (diff)
downloadandroid_hardware_interfaces-51f94235b942db6afbb3674990628bb4bfa07063.tar.gz
android_hardware_interfaces-51f94235b942db6afbb3674990628bb4bfa07063.tar.bz2
android_hardware_interfaces-51f94235b942db6afbb3674990628bb4bfa07063.zip
Make update-makefiles.sh exit if any of the hidl invocations fail
This makes it easier for the user to discover that one (or more) of their source files contain errors Test: ran the script Change-Id: Ibdb1f363d934605f47ca7df0d56bb387a47f7482
Diffstat (limited to 'update-makefiles.sh')
-rwxr-xr-xupdate-makefiles.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/update-makefiles.sh b/update-makefiles.sh
index f153a8413..d0cb91c38 100755
--- a/update-makefiles.sh
+++ b/update-makefiles.sh
@@ -20,7 +20,9 @@ packages=$(pushd hardware/interfaces > /dev/null; \
for p in $packages; do
echo "Updating $p";
hidl-gen -Lmakefile -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport $p;
+ rc=$?; if [[ $rc != 0 ]]; then exit $rc; fi
hidl-gen -Landroidbp -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport $p;
+ rc=$?; if [[ $rc != 0 ]]; then exit $rc; fi
done
# subdirectories of hardware/interfaces which contain an Android.bp file