get_build_file_changes.sh (1316B)
1 #!/bin/bash 2 3 # Both loop-ff.sh and elm_rebase.sh check for modified build (related) 4 # files - in other words, files that when modified might produce a 5 # change in the generated moz.build files. This script is to ensure 6 # that both are using the same set of files 7 8 # since the output of this script is used by loop-ff.sh and 9 # elm_rebase.sh to count the number of changes in specific files, make 10 # sure any logging from use_config_env.sh is squelched. This is mostly 11 # safe since both scripts have already called use_config_env.sh and 12 # exposed any errors it encountered. In practice, we're only using 13 # use_config_env.sh here to "import" the function find_repo_type. 14 source dom/media/webrtc/third_party_build/use_config_env.sh &> /dev/null 15 16 find_repo_type 17 18 if [ "x$MOZ_REPO" == "xgit" ]; then 19 git show --format='' --name-only \ 20 'third_party/libwebrtc/**BUILD.gn' \ 21 'third_party/libwebrtc/**.gni' \ 22 'third_party/libwebrtc/.gn' \ 23 'dom/media/webrtc/third_party_build/gn-configs/webrtc.json' 24 else 25 hg status --change . \ 26 --include 'third_party/libwebrtc/**BUILD.gn' \ 27 --include 'third_party/libwebrtc/**/*.gni' \ 28 --include 'third_party/libwebrtc/.gn' \ 29 --include 'dom/media/webrtc/third_party_build/gn-configs/webrtc.json' 30 fi