blob: 9958d38bf589ead864a06f07214c7ff6587042fa [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/"
26spirv_cross_dir="third_party/spirv-cross/"
27spirv_headers_dir="third_party/spirv-headers/"
28spirv_tools_dir="third_party/SPIRV-Tools/"
29
30cd "$repo_path"
31
32roll-dep "${glslang_dir}" "${spirv_cross_dir}" "${spirv_headers_dir}" "${spirv_tools_dir}"