vendor_build_commit.sh (1189B)
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 "vendor the commit" 10 ./mach python dom/media/webrtc/third_party_build/vendor-libwebrtc.py \ 11 --from-local $REPO_PATH \ 12 --commit mozpatches build 13 hg revert --include "**/moz.build" &> /dev/null 14 ( cd $REPO_PATH \ 15 && echo "# base of lastest vendoring" >> $BASE_COMMIT_FILE \ 16 && git rev-parse --short `git merge-base mozpatches main` >> $BASE_COMMIT_FILE \ 17 ) 18 19 20 echo "commit the newly vendored changes" 21 hg status -nd | xargs hg rm 22 hg status -nu | xargs hg add 23 ( NEW_BASE_SHA=`tail -1 $BASE_COMMIT_FILE` ; \ 24 hg commit -m "Bug $BUG_NUMBER - vendor chromium/build from $NEW_BASE_SHA" ) 25 26 27 echo "save the new patch-stack" 28 ./mach python dom/media/webrtc/third_party_build/save_patch_stack.py \ 29 --state-path "" \ 30 --repo-path $REPO_PATH \ 31 --branch mozpatches \ 32 --target-branch-head `tail -1 $BASE_COMMIT_FILE` \ 33 --patch-path $DEST_PATH/moz-patch-stack \ 34 --skip-startup-sanity \ 35 --separate-commit-bug-number $BUG_NUMBER 36 37 bash $SCRIPT_DIR/generate_build_files.sh 38 39 echo "done"