~ubuntu-branches/ubuntu/quantal/gst0.10-python/quantal

« back to all changes in this revision

Viewing changes to common/cruft.mak

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2010-01-27 08:00:50 UTC
  • mfrom: (1.1.23 upstream) (7.1.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100127080050-2iu7igaxot48lrhj
* New upstream pre-release:
  + debian/control:
    - Update dependencies.
  + Fixes importing on kFreeBSD (Closes: #563535).
  + Fixes "'module' object has no attribute 'Element'" import
    error (Closes: #531347).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# checks for left-over files in the (usually uninstalled) tree, ie. for
 
2
# stuff that best be deleted to avoid problems like having old plugin binaries
 
3
# lying around.
 
4
#
 
5
# set CRUFT_FILES and/or CRUFT_DIRS in your Makefile.am when you include this
 
6
 
 
7
check-cruft:
 
8
        cruft_files=""; cruft_dirs=""; \
 
9
        for f in $(CRUFT_FILES); do \
 
10
          if test -e $$f; then \
 
11
            cruft_files="$$cruft_files $$f"; \
 
12
          fi \
 
13
        done; \
 
14
        for d in $(CRUFT_DIRS); do \
 
15
          if test -e $$d; then \
 
16
            cruft_dirs="$$cruft_dirs $$d"; \
 
17
          fi \
 
18
        done; \
 
19
        if test "x$$cruft_files$$cruft_dirs" != x; then \
 
20
          echo; \
 
21
          echo "**** CRUFT ALERT *****"; \
 
22
          echo; \
 
23
          echo "The following files and directories may not be needed any "; \
 
24
          echo "longer (usually because a plugin has been merged into     "; \
 
25
          echo "another plugin, moved to a different module, or been      "; \
 
26
          echo "renamed), and you probably want to clean them up if you   "; \
 
27
          echo "don't have local changes:                                 "; \
 
28
          echo; \
 
29
          for f in $$cruft_files; do echo "file $$f"; done; \
 
30
          echo; \
 
31
          for d in $$cruft_dirs; do echo "directory $$d"; done; \
 
32
          echo; \
 
33
        fi
 
34
 
 
35
 
 
36
# also might want to add this to your Makefile.am:
 
37
#
 
38
# all-local: check-cruft
 
39