Change name of update to Makefile.release
Some checks failed
ci / cmake-unix (3.15, macos-latest) (push) Has been cancelled
ci / cmake-unix (3.15, ubuntu-latest) (push) Has been cancelled
ci / cmake-unix (latest, macos-latest) (push) Has been cancelled
ci / cmake-unix (latest, ubuntu-latest) (push) Has been cancelled
ci / cmake-windows (3.15) (push) Has been cancelled
ci / cmake-windows (latest) (push) Has been cancelled
ci / reuse (push) Has been cancelled

Per https://github.com/KhronosGroup/Vulkan-Headers/pull/487#issuecomment-2187478137
This commit is contained in:
Jon Leech 2024-07-07 02:40:44 -07:00 committed by Charles Giessen
parent 67dcf5647c
commit 4b9ea26d48

View file

@ -1,8 +1,8 @@
# Copyright 2024 The Khronos Group Inc. # Copyright 2024 The Khronos Group Inc.
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# Makefile to update external files generated in other repositories when # Makefile.release - update external files generated in Vulkan spec
# a public specification update is done. # repository when a public specification update is done.
# Needed to get the right version of test, apparently # Needed to get the right version of test, apparently
SHELL = /bin/bash SHELL = /bin/bash
@ -15,13 +15,13 @@ SPEC = $(GIT)/Vulkan-Docs
HPP = $(GIT)/Vulkan-Hpp HPP = $(GIT)/Vulkan-Hpp
REGISTRY = $(GIT)/registry/vulkan REGISTRY = $(GIT)/registry/vulkan
update: consistency-check create-branch update-files push-branch update: version-check create-branch update-files push-branch
# Working branch for the update, and a test if it exists # Working branch for the update, and a test if it exists
BRANCH = update-$(REVISION) BRANCH = update-$(REVISION)
# Switch to new branch which will contain the update # Switch to new branch which will contain the update
create-branch: consistency-check create-branch: version-check
git switch -q main git switch -q main
git pull -q git pull -q
# If branch already exists, do nothing # If branch already exists, do nothing
@ -55,7 +55,7 @@ update-headers:
cp -r $(HPP)/vulkan/* include/vulkan/ cp -r $(HPP)/vulkan/* include/vulkan/
rm -f $(SCHPPFILES) rm -f $(SCHPPFILES)
# Top-level scripts / XML # Top-level scripts / XML to install
SCRIPTS = \ SCRIPTS = \
$(SPEC)/scripts/cgenerator.py \ $(SPEC)/scripts/cgenerator.py \
$(SPEC)/scripts/generator.py \ $(SPEC)/scripts/generator.py \
@ -68,12 +68,12 @@ SCRIPTS = \
$(SPEC)/xml/video.xml \ $(SPEC)/xml/video.xml \
$(REGISTRY)/specs/1.3-extensions/validation/validusage.json $(REGISTRY)/specs/1.3-extensions/validation/validusage.json
# Scripts in registry/spec_tools # Scripts in registry/spec_tools to install
SCRIPT_TOOLS = \ SCRIPT_TOOLS = \
$(SPEC)/scripts/spec_tools/conventions.py \ $(SPEC)/scripts/spec_tools/conventions.py \
$(SPEC)/scripts/spec_tools/util.py $(SPEC)/scripts/spec_tools/util.py
# Profiles # Profiles to install
PROFILES = \ PROFILES = \
$(wildcard $(SPEC)/xml/profiles/*) $(wildcard $(SPEC)/xml/profiles/*)
@ -104,5 +104,5 @@ push-branch:
@echo git push --set-upstream origin $(BRANCH) @echo git push --set-upstream origin $(BRANCH)
@echo git switch main @echo git switch main
consistency-check: version-check:
@if test $(REVISION) = 999 ; then echo "Must specify explicit REVISION= in make invocation" ; exit 1 ; fi @if test $(REVISION) = 999 ; then echo "Must specify explicit REVISION= in make invocation" ; exit 1 ; fi