Codebase list sugar-chat-activity / 6294337
fix shebang to call python3 (not python) Jonas Smedegaard 3 years ago
1 changed file(s) with 5 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
1616 binary-fixup/$(pkg)::
1717 find $(cdbs_curdestdir)/usr/share -type f -name '*.desktop' \
1818 -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