| 1 |
brettp-guest |
1388 |
#!/usr/bin/make -f |
| 2 |
|
|
|
| 3 |
|
|
DEB_PYTHON_SYSTEM := pysupport |
| 4 |
|
|
|
| 5 |
|
|
include /usr/share/cdbs/1/rules/buildcore.mk |
| 6 |
|
|
include /usr/share/cdbs/1/rules/debhelper.mk |
| 7 |
|
|
include /usr/share/cdbs/1/class/python-distutils.mk |
| 8 |
|
|
include /usr/share/cdbs/1/rules/simple-patchsys.mk |
| 9 |
|
|
|
| 10 |
|
|
binary-post-install/python-django:: |
| 11 |
hertzog |
1612 |
# Use default python shebang |
| 12 |
|
|
perl -pi -e 's|^#!/usr/bin/env python.*$$|#!/usr/bin/python|' debian/python-django/usr/share/python-support/python-django/django/conf/project_template/manage.py |
| 13 |
|
|
# Ensure executability of some scripts that are copied to projects |
| 14 |
|
|
# (or used within projects) |
| 15 |
|
|
chmod 755 debian/python-django/usr/share/python-support/python-django/django/conf/project_template/manage.py |
| 16 |
|
|
chmod 755 debian/python-django/usr/share/python-support/python-django/django/bin/[^_]*.py |
| 17 |
|
|
chmod 755 debian/python-django/usr/share/python-support/python-django/django/bin/profiling/[^_]*.py |
| 18 |
|
|
# Create convenience symlink |
| 19 |
brettp-guest |
1603 |
mkdir -p debian/python-django/usr/lib/python-django |
| 20 |
hertzog |
1612 |
dh_link usr/share/python-support/python-django/django/bin usr/lib/python-django/bin |
| 21 |
brettp-guest |
1686 |
# Rename django-admin.py to django-admin |
| 22 |
brettp-guest |
1388 |
mv debian/python-django/usr/bin/django-admin.py debian/python-django/usr/bin/django-admin |