Explorar o código

Add new script to update external dependencies for the SPIRV backend. (#5246)

This simplifies the updating of the external dependencies for the SPIRV
backend.

Tested on Linux.
Diego Novillo %!s(int64=2) %!d(string=hai) anos
pai
achega
c4f9df287b
Modificáronse 1 ficheiros con 10 adicións e 0 borrados
  1. 10 0
      utils/update_spirv_deps.sh

+ 10 - 0
utils/update_spirv_deps.sh

@@ -0,0 +1,10 @@
+#!/bin/bash
+if [ ! -d external -o ! -d .git -o ! -d azure-pipelines ] ; then
+  echo "Run this script on the top-level directory of the DXC repository."
+  exit 1
+fi
+
+set -ex
+git submodule foreach 'set -x && git switch main && git pull --ff-only'
+git add external
+exit 0