Build: Verify Sample[Custom].plist on build
#!/bin/bash
+abort() {
+ echo "ERROR: $1!"
+ exit 1
+}
+
buildutil() {
UTILS=(
"AppleEfiSignTool"
@@ -281,5 +286,19 @@ export NO_ARCHIVES
src=$(curl -Lfs https://raw.githubusercontent.com/acidanthera/ocbuild/master/efibuild.sh) && eval "$src" || exit 1
+cd Utilities/ocvalidate || exit 1
+ocv_tool=""
+if [ -x ./ocvalidate ]; then
+ ocv_tool=./ocvalidate
+elif [ -x ./ocvalidate.exe ]; then
+ ocv_tool=./ocvalidate.exe
+fi
+
+if [ -x "$ocv_tool" ]; then
+ "$ocv_tool" ../../Docs/Sample.plist || abort "Wrong Sample.plist"
+ "$ocv_tool" ../../Docs/SampleCustom.plist || abort "Wrong SampleCustom.plist"
+fi
+cd ../..
+
cd Library/OcConfigurationLib || exit 1
-./CheckSchema.py OcConfigurationLib.c || exit 1
+./CheckSchema.py OcConfigurationLib.c || abort "Wrong OcConfigurationLib.c"
