~paolorotolo/software-center/fix-for-963309

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Michael Vogt
  • Date: 2009-08-21 14:09:08 UTC
  • Revision ID: michael.vogt@ubuntu.com-20090821140908-3lzaw2kpjrb4bwyu
debian/*: initial debian dir

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
share:=usr/share/app-center
 
3
%:
 
4
        DH_PYCENTAL=include-links dh --with=python-central $@
 
5
 
 
6
# Install the modules in a private directory, as our applications are the
 
7
# only ones using them.
 
8
override_dh_auto_install:
 
9
        dh_auto_install -- --install-lib /usr/share/app-center
 
10
        rm -r debian/app-center/usr/share/app-center/*.egg-info
 
11
        # Move the scripts to $(SHARE) and relink them again later.
 
12
        mv debian/app-center/usr/*bin/* debian/app-center/$(share)
 
13
        rmdir debian/app-center/usr/*bin
 
14
        dh_link $(share)/app-center usr/bin/app-center \
 
15
                $(share)/update-app-center usr/sbin/update-app-center
 
16
        # Remove empty directories.
 
17
        find debian/app-center/usr -type d -empty -delete