~andrewsomething/ubuntu-packaging-guide/version-number-in-footer

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Daniel Holbach
  • Date: 2012-03-20 22:02:49 UTC
  • mfrom: (78.2.26 upg-i18n)
  • Revision ID: daniel.holbach@canonical.com-20120320220249-pljexws010dw6cbi
mergedĀ lp:~andrewsomething/ubuntu-packaging-guide/i18n

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
        make epub
10
10
 
11
11
override_dh_compress:
12
 
        dh_compress -X usr/share/doc/ubuntu-packaging-guide/html/_sources/
 
12
        dh_compress -X usr/share/doc/ubuntu-packaging-guide/html/
 
13
 
 
14
override_dh_link:
 
15
        # symlink identical resources.
 
16
        cd debian/ubuntu-packaging-guide && LC_ALL=C fdupes -r1nq \
 
17
        usr/share/doc/ubuntu-packaging-guide/html | while read s; do \
 
18
                set -- $$(echo $$s | tr ' ' '\n' | sort); \
 
19
                f=$$1; shift; \
 
20
                for d; do \
 
21
                        echo "symlinking identical file $$f to $$d"; \
 
22
                        rm $$f; ln -s /$$d $$f; \
 
23
                done; \
 
24
        done;
 
25
        dh_link