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