Ryan Harrison | da8223d | 2019-06-19 15:04:09 +0000 | [diff] [blame] | 1 | #!/usr/bin/env bash |
| 2 | |
| 3 | # Copyright 2019 The Dawn Authors |
| 4 | # |
| 5 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | # you may not use this file except in compliance with the License. |
| 7 | # You may obtain a copy of the License at |
| 8 | # |
| 9 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | # |
| 11 | # Unless required by applicable law or agreed to in writing, software |
| 12 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | # See the License for the specific language governing permissions and |
| 15 | # limitations under the License. |
| 16 | |
| 17 | # Attempts to roll the shaderc related entries in DEPS to origin/master and |
| 18 | # creates a commit. |
| 19 | # |
| 20 | # Depends on roll-dep from depot_path being in PATH. |
| 21 | |
| 22 | # This script assumes it's parent directory is the repo root. |
| 23 | repo_path=$(dirname "$0")/.. |
| 24 | |
| 25 | glslang_dir="third_party/glslang/" |
Ryan Harrison | eee3e41 | 2019-06-27 15:35:14 +0000 | [diff] [blame] | 26 | shaderc_dir="third_party/shaderc/" |
Ryan Harrison | da8223d | 2019-06-19 15:04:09 +0000 | [diff] [blame] | 27 | spirv_cross_dir="third_party/spirv-cross/" |
| 28 | spirv_headers_dir="third_party/spirv-headers/" |
| 29 | spirv_tools_dir="third_party/SPIRV-Tools/" |
Ryan Harrison | 991b947 | 2020-05-06 23:15:54 +0000 | [diff] [blame] | 30 | tint_dir="third_party/tint/" |
Ryan Harrison | da8223d | 2019-06-19 15:04:09 +0000 | [diff] [blame] | 31 | |
| 32 | cd "$repo_path" |
| 33 | |
Ryan Harrison | 991b947 | 2020-05-06 23:15:54 +0000 | [diff] [blame] | 34 | roll-dep "$@" "${glslang_dir}" "${shaderc_dir}" "${spirv_cross_dir}" "${spirv_headers_dir}" "${spirv_tools_dir}" "${tint_dir}" |