OSDN Git Service

SDK: fix win-sdk build errors, make future errors fatal.
authorRaphael <raphael@google.com>
Tue, 1 Feb 2011 20:51:24 +0000 (12:51 -0800)
committerRaphael <raphael@google.com>
Tue, 1 Feb 2011 20:51:24 +0000 (12:51 -0800)
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

index bee15ce..2bbf24c 100755 (executable)
@@ -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