2
0
Эх сурвалжийг харах

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 2 жил өмнө
parent
commit
c4f9df287b

+ 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