Add redistribution guard
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]>
This commit is contained in:
1 parent
e0d1549a21
commit
2088422682
6 files changed
+282
-2
No files matched your search
Executable
+5
@@ -0,0 +1,5 @@
|
||||
#!/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
|
||||
Reference in new issue
Block a user