File: sync_headers.sh

package info (click to toggle)
vulkan-loader 1.1.97-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 8,560 kB
  • sloc: cpp: 51,943; ansic: 23,551; xml: 10,308; python: 4,660; asm: 1,690; sh: 375; makefile: 30
file content (14 lines) | stat: -rwxr-xr-x 362 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

REPO=https://github.com/KhronosGroup/Vulkan-Headers.git
VERSION=`dpkg-parsechangelog -S Version|sed 's/-.*//'`

# clean old checkout
git rm -rf vulkan-headers

git clone $REPO vulkan-headers
(cd vulkan-headers; git reset --hard v$VERSION; cd ..)
rm -rf vulkan-headers/.git

git add -f vulkan-headers
git commit -m "Refresh vulkan-headers to $VERSION"