mirror of
https://github.com/status-im/OpenXR-Docs.git
synced 2026-08-31 09:41:13 +00:00
Patch release for the 1.0 series. Updates version to 1.0.1. ### Public issues - #25 - Fix `make all` in the absence of styleguide and loader doc. - #26 - Proposal for unbounded space and spatial anchor extensions (vendor extensions) ### Internal issues - Replace remaining mentions of "app" with "application" (internal MR 1468) - Makefile cleanups (internal MR 1469, 1489) - Typographical fixes (internal MR 1490) - Reserve Oculus extension numbers (internal MR 1493) - Add Monado headless (vendor extension) (internal MR 1482) - Generated header files removed from `OpenXR-Docs` repo. ### New extensions - `XR_MND_headless` - `XR_MSFT_spatial_anchor` - `XR_MSFT_unbounded_reference_space`
48 lines
1.6 KiB
Python
Executable File
48 lines
1.6 KiB
Python
Executable File
#!/usr/bin/env python3
|
|
# Copyright (c) 2019 The Khronos Group Inc.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
#
|
|
# Author: Ryan Pavlik <ryan.pavlik@collabora.com>
|
|
"""Pass a filename and any arguments. Will use those arguments to create a stamp file to monitor for changes."""
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
|
|
def check_stamp(fn, args):
|
|
new_contents = ",".join(str(x) for x in args).strip()
|
|
write_stamp = True
|
|
p = Path(fn)
|
|
if p.exists():
|
|
with open(fn, 'r', encoding='utf-8') as fp:
|
|
stamp_contents = fp.read().strip()
|
|
if stamp_contents == new_contents:
|
|
write_stamp = False
|
|
else:
|
|
print("Build configuration options have changed - forcing clean_generated")
|
|
|
|
if write_stamp:
|
|
with open(fn, 'w', encoding='utf-8') as fp:
|
|
fp.write(new_contents)
|
|
fp.flush()
|
|
return write_stamp
|
|
|
|
|
|
if __name__ == "__main__":
|
|
stamp = sys.argv[1]
|
|
data = sys.argv[2:]
|
|
# print("Stamp name:", stamp)
|
|
# print("Data:", data)
|
|
if check_stamp(sys.argv[1], sys.argv[2:]):
|
|
sys.exit(1)
|