scripts/check_redistributable.py refuses NVIDIA binaries (by name and version resource), NGX SDK headers, PTX and code objects, PTX translations (marked by ptx2glsl.py/condense.py) and the engine's model data in the repository, and in each release variant (clean/installer/full) whatever that variant does not contain. package_release.sh runs it before zipping; scripts/git-hooks/pre-commit runs it locally. Signed-off-by: woutermans <[email protected]>
6 lines
323 B
Bash
Executable File
6 lines
323 B
Bash
Executable File
#!/bin/sh
|
|
# Refuses commits that add NVIDIA's files, code built from NVIDIA's PTX or values read from DLSS
|
|
# (scripts/check_redistributable.py; see NOTICE). Enable once per clone:
|
|
# git config core.hooksPath scripts/git-hooks
|
|
exec python3 "$(git rev-parse --show-toplevel)/scripts/check_redistributable.py" tree --staged
|