diff options
author | classabbyamp <void@placeviolette.net> | 2024-04-18 01:51:01 +0000 |
---|---|---|
committer | classabbyamp <5366828+classabbyamp@users.noreply.github.com> | 2024-04-24 03:51:01 +0000 |
commit | 58705ffcbf2cfd62a9627c781b04613b2faea153 (patch) | |
tree | 1cd78f8e93c284e58849d66567fd9f6805684f31 /common/hooks/pre-pkg | |
parent | 5b210379b4f06941285dc906521a2f77aeada5ec (diff) | |
download | void-packages-58705ffcbf2cfd62a9627c781b04613b2faea153.tar void-packages-58705ffcbf2cfd62a9627c781b04613b2faea153.tar.gz void-packages-58705ffcbf2cfd62a9627c781b04613b2faea153.tar.bz2 void-packages-58705ffcbf2cfd62a9627c781b04613b2faea153.tar.lz void-packages-58705ffcbf2cfd62a9627c781b04613b2faea153.tar.xz void-packages-58705ffcbf2cfd62a9627c781b04613b2faea153.tar.zst void-packages-58705ffcbf2cfd62a9627c781b04613b2faea153.zip |
common: support disabling python shebang rewriting
useful if there are special python-containing shebangs that should not
be rewritten, for example with Ghidra's embedded jython.
Diffstat (limited to '')
-rw-r--r-- | common/hooks/pre-pkg/03-rewrite-python-shebang.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/hooks/pre-pkg/03-rewrite-python-shebang.sh b/common/hooks/pre-pkg/03-rewrite-python-shebang.sh index 07162ad2c69..47c7a996a50 100644 --- a/common/hooks/pre-pkg/03-rewrite-python-shebang.sh +++ b/common/hooks/pre-pkg/03-rewrite-python-shebang.sh @@ -12,6 +12,10 @@ hook() { pyver="$python_version" fi + if [ "$python_version" = ignore ]; then + return + fi + if [ -n "$pyver" ]; then default_shebang="#!/usr/bin/python${pyver%.*}" fi |