/[python-modules]/packages/python-django/trunk/debian/rules
ViewVC logotype

Contents of /packages/python-django/trunk/debian/rules

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6401 - (hide annotations) (download)
Fri Aug 29 19:17:33 2008 UTC (4 years, 8 months ago) by netzwurm
File size: 1561 byte(s)
* Updated the copyright information to include copyright and 
  licenses for individual contributions. 
* Added the documentation to the main python-django package:
* debian/python-django.install
  - Added installation of html documentation.
* debian/python-django.doc-base
  - Added.
* debian/control
  - Added Build-Depends-Indep on python-sphinx and libjs-jquery.
* debian/rules
  - Readded code to build documentation.
  - Readded code to link to libjs-jquery.
* debian/NEWS
  - Fixed format.
  - Added more comprehensive list of changes and references to 
    local documentation as well as the wiki pages for 
    backwards-incompatible changes.
* debian/python-django.docs
  - Removed docs/*.txt since those are templates for the 
    generated docs now included with doc-base.
1 brettp-guest 1388 #!/usr/bin/make -f
2    
3     DEB_PYTHON_SYSTEM := pysupport
4 netzwurm 6382 DEB_PYTHON_MODULE_PACKAGE = python-django
5 netzwurm 6396 #DEB_DH_COMPRESS_ARGS = -X.js
6 brettp-guest 1388
7     include /usr/share/cdbs/1/rules/buildcore.mk
8     include /usr/share/cdbs/1/rules/debhelper.mk
9     include /usr/share/cdbs/1/class/python-distutils.mk
10     include /usr/share/cdbs/1/rules/simple-patchsys.mk
11    
12 netzwurm 6401 build/python-django::
13     # Build HTML documentation
14     cd docs && make html
15    
16 brettp-guest 1388 binary-post-install/python-django::
17 hertzog 1612 # Use default python shebang
18     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
19     # Ensure executability of some scripts that are copied to projects
20     # (or used within projects)
21     chmod 755 debian/python-django/usr/share/python-support/python-django/django/conf/project_template/manage.py
22     chmod 755 debian/python-django/usr/share/python-support/python-django/django/bin/[^_]*.py
23     chmod 755 debian/python-django/usr/share/python-support/python-django/django/bin/profiling/[^_]*.py
24     # Create convenience symlink
25 brettp-guest 1603 mkdir -p debian/python-django/usr/lib/python-django
26 hertzog 1612 dh_link usr/share/python-support/python-django/django/bin usr/lib/python-django/bin
27 brettp-guest 1686 # Rename django-admin.py to django-admin
28 brettp-guest 1388 mv debian/python-django/usr/bin/django-admin.py debian/python-django/usr/bin/django-admin
29 netzwurm 6401 # Remove convenience copy of libjs-jquery and replace with symlink
30     cd debian/python-django/usr/share/doc/python-django/html/_static\
31     && rm -f jquery.js\
32     && ln -s ../../../../javascript/jquery/jquery.js .
33 netzwurm 6382
34     clean::
35     rm -rf docs/_build/*

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.5