blob: 8d061e2020aa0a80fffdfa9e67a208e6d3f109d9 [file] [log] [blame]
Ryan Harrisonda8223d2019-06-19 15:04:09 +00001#!/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.
23repo_path=$(dirname "$0")/..
24
25glslang_dir="third_party/glslang/"
Ryan Harrisoneee3e412019-06-27 15:35:14 +000026shaderc_dir="third_party/shaderc/"
Ryan Harrisonda8223d2019-06-19 15:04:09 +000027spirv_cross_dir="third_party/spirv-cross/"
28spirv_headers_dir="third_party/spirv-headers/"
29spirv_tools_dir="third_party/SPIRV-Tools/"
Ryan Harrison991b9472020-05-06 23:15:54 +000030tint_dir="third_party/tint/"
Ryan Harrisonda8223d2019-06-19 15:04:09 +000031
32cd "$repo_path"
33
Ryan Harrison991b9472020-05-06 23:15:54 +000034roll-dep "$@" "${glslang_dir}" "${shaderc_dir}" "${spirv_cross_dir}" "${spirv_headers_dir}" "${spirv_tools_dir}" "${tint_dir}"