[Pkg-awstats-commits] r36 - awstats/trunk/debian/cdbs/1/rules
Jonas Smedegaard
js at costa.debian.org
Sun Jan 15 20:41:34 UTC 2006
Author: js
Date: 2006-01-15 20:41:27 +0000 (Sun, 15 Jan 2006)
New Revision: 36
Modified:
awstats/trunk/debian/cdbs/1/rules/copyright-check.mk
Log:
Update copyright-check cdbs snippet to handle the very first file being binary.
Modified: awstats/trunk/debian/cdbs/1/rules/copyright-check.mk
===================================================================
--- awstats/trunk/debian/cdbs/1/rules/copyright-check.mk 2006-01-15 20:16:06 UTC (rev 35)
+++ awstats/trunk/debian/cdbs/1/rules/copyright-check.mk 2006-01-15 20:41:27 UTC (rev 36)
@@ -1,5 +1,5 @@
# -*- mode: makefile; coding: utf-8 -*-
-# Copyright © 2005 Jonas Smedegaard <dr at jones.dk>
+# Copyright © 2005-2006 Jonas Smedegaard <dr at jones.dk>
# Description: Check for changes to copyright notices in source
#
# This program is free software; you can redistribute it and/or
@@ -28,11 +28,13 @@
include $(_cdbs_rules_path)/buildcore.mk$(_cdbs_makefile_suffix)
+cdbs_copyright-check_find_opts := -not -regex '\./debian/.*'
+
clean::
@echo 'Scanning upstream source for new/changed copyright notices...'
@echo '(the debian/ subdir is _not_ examined - do that manually!)'
- find . -type f -not -regex '\./debian/.*' -exec cat '{}' ';' \
- | egrep -rih 'copyright.*[0-9]{4}' \
+ find . -type f $(cdbs_copyright-check_find_opts) -exec cat '{}' ';' \
+ | egrep --text -rih 'copyright.*[0-9]{4}' \
| sed -e 's/^[[:space:]*#]*//' -e 's/[[:space:]]*$$//' \
| LC_ALL=C sort -u \
> debian/copyright_newhints
More information about the Pkg-awstats-commits
mailing list