From 729d89418821a6c61231ba26be7608c5952f9c30 Mon Sep 17 00:00:00 2001
From: Raphael <raphael@google.com>
Date: Tue, 1 Feb 2011 12:51:24 -0800
Subject: SDK: fix win-sdk build errors, make future errors fatal.

Change the shell script to make any error fatal and actually
break the build, like it should.

Change-Id: Iee86b79c5b12a109ccb92dbc81d586c54ac68b5f
---
 build/patch_windows_sdk.sh | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/build/patch_windows_sdk.sh b/build/patch_windows_sdk.sh
index bee15ce..2bbf24c 100755
--- a/build/patch_windows_sdk.sh
+++ b/build/patch_windows_sdk.sh
@@ -1,14 +1,18 @@
 #!/bin/bash
 
-# This file is included by development.git/tools/build/patch_windows_sdk.sh.
+# This file is run by development/tools/build/windows_sdk.mk right
+# after development.git/tools/build/patch_windows_sdk.sh.
 # Please see the details in the other file.
 
+set -e # any error stops the build
 
 # Verbose by default. Use -q to make more silent.
-V="-v"
+V=""
 if [[ "$1" == "-q" ]]; then
-  V=""
   shift
+else
+  echo "Win SDK: $0 $*"
+  set -x # show bash commands; no need for V=-v
 fi
 
 TEMP_SDK_DIR=$1
-- 
cgit v1.1