verify_vendoring.sh (691B)
1 #!/bin/bash 2 3 # After this point: 4 # * eE: All commands should succeed. 5 # * u: All variables should be defined before use. 6 # * o pipefail: All stages of all pipes should succeed. 7 set -eEuo pipefail 8 9 echo "Verifying vendoring..." 10 11 ./mach python dom/media/webrtc/third_party_build/vendor-libwebrtc.py \ 12 --from-local $REPO_PATH \ 13 --commit mozpatches build 14 15 hg revert \ 16 --include "**/moz.build" \ 17 --include "$DEST_PATH/README.mozilla.last-vendor" &> /dev/null 18 19 FILE_CHANGE_CNT=`hg status $DEST_PATH | wc -l | tr -d " "` 20 if [ "x$FILE_CHANGE_CNT" != "x0" ]; then 21 echo "Changes were detected after vendoring" 22 hg status | head 23 exit 1 24 fi 25 26 echo "Done - vendoring has been verified."