diff options
author | rillig <rillig> | 2005-10-24 18:20:40 +0000 |
---|---|---|
committer | rillig <rillig> | 2005-10-24 18:20:40 +0000 |
commit | 4795b6fdf91457f18c593f62d602baa72e983bd1 (patch) | |
tree | b522acdc62d3ab8a9734138374ec222681943237 | |
parent | 0a9fb94a3f37c68452c297908901e30c48eef5ec (diff) | |
download | pkgsrc-4795b6fdf91457f18c593f62d602baa72e983bd1.tar.gz |
Generally allow $Id$ instead of $NetBSD$ in files from pkgsrc-wip.
-rw-r--r-- | pkgtools/pkglint/files/pkglint.pl | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl index fd7edb65bd2..6e15accdd13 100644 --- a/pkgtools/pkglint/files/pkglint.pl +++ b/pkgtools/pkglint/files/pkglint.pl @@ -11,7 +11,7 @@ # Freely redistributable. Absolutely no warranty. # # From Id: portlint.pl,v 1.64 1998/02/28 02:34:05 itojun Exp -# $NetBSD: pkglint.pl,v 1.302 2005/10/23 23:14:57 rillig Exp $ +# $NetBSD: pkglint.pl,v 1.303 2005/10/24 18:20:40 rillig Exp $ # # This version contains lots of changes necessary for NetBSD packages # done by: @@ -746,7 +746,12 @@ sub checkline_trailing_whitespace($) { sub checkline_rcsid_regex($$$) { my ($line, $prefix_regex, $prefix) = @_; - if ($line->text !~ qr"^${prefix_regex}\$($opt_rcsidstring)(?::[^\$]*|)\$$") { + my ($id) = ($opt_rcsidstring); + + if (Cwd::abs_path($line->file) =~ qr"/wip/") { + $id .= "|Id"; + } + if ($line->text !~ qr"^${prefix_regex}\$(${id})(?::[^\$]*|)\$$") { $line->log_error("\"${prefix}\$${opt_rcsidstring}\$\" expected."); return false; } |