Package list sugar-etoys-activity / 2c310b7
fix shebang to call python3 (not python) Jonas Smedegaard 1 year, 1 month ago
1 changed file(s) with 5 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
1313 binary-fixup/$(pkg)::
1414 find $(cdbs_curdestdir)/usr/share -type f -name '*.desktop' \
1515 -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