diff options
author | abs <abs> | 2001-05-03 19:18:55 +0000 |
---|---|---|
committer | abs <abs> | 2001-05-03 19:18:55 +0000 |
commit | ea4ce33844b8d7d834109711ba4ddd4599e42843 (patch) | |
tree | fc4d62014369f21cc4f8ceeb935f6236a9d764a2 /pkgtools/pkglint | |
parent | 3cc4cf8245183caa70ffcbfdf90639c9b71e2659 (diff) | |
download | pkgsrc-ea4ce33844b8d7d834109711ba4ddd4599e42843.tar.gz |
Update pkglint to 2.50
Implement pkglint -V which displays pkglint version
(Useful for ftp.netbsd.org automated checks)
Diffstat (limited to 'pkgtools/pkglint')
-rw-r--r-- | pkgtools/pkglint/Makefile | 7 | ||||
-rw-r--r-- | pkgtools/pkglint/files/pkglint.pl | 9 |
2 files changed, 12 insertions, 4 deletions
diff --git a/pkgtools/pkglint/Makefile b/pkgtools/pkglint/Makefile index bacbb4de184..d8d2616a398 100644 --- a/pkgtools/pkglint/Makefile +++ b/pkgtools/pkglint/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.91 2001/05/01 15:52:50 abs Exp $ +# $NetBSD: Makefile,v 1.92 2001/05/03 19:18:55 abs Exp $ # -DISTNAME= pkglint-2.49 +DISTNAME= pkglint-2.50 CATEGORIES= pkgtools devel MASTER_SITES= # empty DISTFILES= # empty @@ -21,6 +21,8 @@ NO_CONFIGURE= yes PKGSRCDIR?= ${.CURDIR}/../.. MAKE_ENV= PKGSRCDIR=${PKGSRCDIR} +DISTVER= ${DISTNAME:S/pkglint-//} + .include "../../mk/bsd.prefs.mk" .if ${OPSYS} == "SunOS" @@ -35,6 +37,7 @@ do-build: .for FILE in pkglint lintpkgsrc plist-clash ${SED} -e 's|@PREFIX@|${PREFIX}|g' \ -e 's|@PORTSDIR@|${PKGSRCDIR}|g' \ + -e 's|@DISTVER@|${DISTVER}|g' \ < ${FILESDIR}/${FILE}.pl \ > ${WRKSRC}/${FILE} .endfor diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl index 70f37fbe391..5d3769714d5 100644 --- a/pkgtools/pkglint/files/pkglint.pl +++ b/pkgtools/pkglint/files/pkglint.pl @@ -12,7 +12,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.48 2001/04/23 14:49:45 wiz Exp $ +# $NetBSD: pkglint.pl,v 1.49 2001/05/03 19:18:55 abs Exp $ # # This version contains some changes necessary for NetBSD packages # done by Hubert Feyrer <hubertf@netbsd.org>, @@ -42,13 +42,14 @@ $manstrict = 0; $manchapters = '123456789ln'; $localbase = "/usr/local"; -getopts('habcINB:v'); +getopts('habcINB:vV'); if ($opt_h) { ($prog) = ($0 =~ /([^\/]+)$/); print STDERR <<EOF; usage: $prog [-vIN] [-B#] [package_directory] -v verbose mode + -V version (@DISTVER@) -I show Makefile (with all included files) -N writing a new package -B# allow # contiguous blank lines (default: $contblank line) @@ -64,6 +65,10 @@ $contblank = $opt_B if $opt_B; $portdir = shift || "."; +if ($opt_V) { + print "@DISTVER@\n"; + exit; +} # OS dependent configs # os portsdir rcsid mplist ldcfg plist-rcsid mancompresss strict localbase |