fix shebang to call python3 (not python)
Jonas Smedegaard
3 years ago
16 | 16 | binary-fixup/$(pkg):: |
17 | 17 | find $(cdbs_curdestdir)/usr/share -type f -name '*.desktop' \ |
18 | 18 | -execdir perl -pi -e 's,^\S+\s*=\s*\K\S*(?=/usr/share),,g' '{}' ';' |
19 | ||
20 | # Ensure optimal hash-bang + dependency for scripts (see Python Policy) | |
21 | binary-fixup/$(pkg):: | |
22 | perl -pi -e 's,^#! ?/usr/bin/(env )?python[[:print:]]*$$,#!/usr/bin/$(strip $(cdbs_curpythonruntime)),' \ | |
23 | $(cdbs_curdestdir)/usr/share/sugar/activities/*/setup.py |