diff options
author | Alessio Sergi <al3hex@gmail.com> | 2016-10-24 06:08:00 +0000 |
---|---|---|
committer | Alessio Sergi <al3hex@gmail.com> | 2016-10-24 06:09:54 +0000 |
commit | 5a231f8c1348b0e91afe95ce844d1ffbb746a621 (patch) | |
tree | d5c4d8baf35143f61310078e5daed1b9c6254475 /common/hooks/pre-pkg | |
parent | 4167e269b78f271d34545901f8c98cf4a3de0b5e (diff) | |
download | void-packages-5a231f8c1348b0e91afe95ce844d1ffbb746a621.tar void-packages-5a231f8c1348b0e91afe95ce844d1ffbb746a621.tar.gz void-packages-5a231f8c1348b0e91afe95ce844d1ffbb746a621.tar.bz2 void-packages-5a231f8c1348b0e91afe95ce844d1ffbb746a621.tar.lz void-packages-5a231f8c1348b0e91afe95ce844d1ffbb746a621.tar.xz void-packages-5a231f8c1348b0e91afe95ce844d1ffbb746a621.tar.zst void-packages-5a231f8c1348b0e91afe95ce844d1ffbb746a621.zip |
hooks/rewrite-python-shebang: bin-only scripts support
Diffstat (limited to 'common/hooks/pre-pkg')
-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 e5fb2157441..6f057cc984b 100644 --- a/common/hooks/pre-pkg/03-rewrite-python-shebang.sh +++ b/common/hooks/pre-pkg/03-rewrite-python-shebang.sh @@ -6,6 +6,10 @@ hook() { : ${pyver:=2} + if [ -n "$py3_ver" ]; then + pyver=3 + fi + if [ -d ${PKGDESTDIR}/usr/lib/python* ]; then pycompile_version="$(find ${PKGDESTDIR}/usr/lib/python* -type d | grep -o '[[:digit:]]\.[[:digit:]]$')" fi |