~ubuntu-branches/ubuntu/karmic/csound/karmic

« back to all changes in this revision

Viewing changes to debian/cdbs/1/rules/copyright-check.mk

  • Committer: Bazaar Package Importer
  • Author(s): Jonas Smedegaard
  • Date: 2008-06-21 23:12:05 UTC
  • mfrom: (3.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080621231205-3zn5a4jqvuy858j0
Tags: 1:5.08.0.dfsg2-8
Only warn about copyright-check.mk discoveries.  Closes: bug#487052.

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
        licensecheck -c '$(DEB_COPYRIGHT_CHECK_REGEX)' -r --copyright -i '$(DEB_COPYRIGHT_CHECK_IGNORE_REGEX)' * \
44
44
                | LC_ALL=C perl -e \
45
45
        '$$n=0; while (<>) {'\
 
46
        '       s/[^[:print:]]//g;'\
46
47
        '       if (/^([^:\s][^:]+):[\s]+(\S.*?)\s*$$/) {'\
47
48
        '               $$files[$$n]{name}=$$1;'\
48
49
        '               $$files[$$n]{license}=$$2;'\
73
74
        @if [ ! -f debian/copyright_hints ]; then touch debian/copyright_hints; fi
74
75
        @newstrings=`diff -u debian/copyright_hints debian/copyright_newhints | sed '1,2d' | egrep '^\+' - | sed 's/^\+//'`; \
75
76
                if [ -n "$$newstrings" ]; then \
76
 
                        echo "ERROR: The following new or changed copyright notices discovered:"; \
 
77
                        echo "WARNING: The following new or changed copyright notices discovered:"; \
77
78
                        echo; \
78
79
                        echo "$$newstrings"; \
79
80
                        echo; \
80
81
                        echo "To fix the situation please do the following:"; \
81
82
                        echo "  1) Investigate the above changes and update debian/copyright as needed"; \
82
83
                        echo "  2) Replace debian/copyright_hints with debian/copyright_newhints"; \
83
 
                        exit 1; \
 
84
                else \
 
85
                        echo 'No new copyright notices found - assuming no news is good news...'; \
 
86
                        rm -f debian/copyright_newhints; \
84
87
                fi
85
 
        
86
 
        @echo 'No new copyright notices found - assuming no news is good news...'
87
 
        rm -f debian/copyright_newhints
88
88
        touch $@
89
89
 
90
90
clean::