Mon Oct 21 10:43:28 2013 UTC ()
2.5:
finddepends: Also search in mozilla-common.mk.
Update instructions.


(wiz)
diff -r1.23 -r1.24 pkgsrc/pkgtools/revbump/Makefile
diff -r1.7 -r1.8 pkgsrc/pkgtools/revbump/files/finddepends
diff -r1.15 -r1.16 pkgsrc/pkgtools/revbump/files/revbump.1

cvs diff -r1.23 -r1.24 pkgsrc/pkgtools/revbump/Makefile (expand / switch to unified diff)

--- pkgsrc/pkgtools/revbump/Makefile 2013/05/31 12:41:47 1.23
+++ pkgsrc/pkgtools/revbump/Makefile 2013/10/21 10:43:28 1.24
@@ -1,17 +1,16 @@ @@ -1,17 +1,16 @@
1# $NetBSD: Makefile,v 1.23 2013/05/31 12:41:47 wiz Exp $ 1# $NetBSD: Makefile,v 1.24 2013/10/21 10:43:28 wiz Exp $
2 2
3DISTNAME= revbump-2.4 3DISTNAME= revbump-2.5
4PKGREVISION= 1 
5CATEGORIES= pkgtools 4CATEGORIES= pkgtools
6MASTER_SITES= # empty 5MASTER_SITES= # empty
7DISTFILES= # empty 6DISTFILES= # empty
8 7
9MAINTAINER= wiz@NetBSD.org 8MAINTAINER= wiz@NetBSD.org
10HOMEPAGE= http://www.pkgsrc.org/ 9HOMEPAGE= http://www.pkgsrc.org/
11COMMENT= Tools for bumping PKGREVISIONs (for pkgsrc developers) 10COMMENT= Tools for bumping PKGREVISIONs (for pkgsrc developers)
12LICENSE= modified-bsd 11LICENSE= modified-bsd
13 12
14PKG_INSTALLATION_TYPES= overwrite pkgviews 13PKG_INSTALLATION_TYPES= overwrite pkgviews
15 14
16WRKSRC= ${WRKDIR} 15WRKSRC= ${WRKDIR}
17NO_CONFIGURE= yes 16NO_CONFIGURE= yes

cvs diff -r1.7 -r1.8 pkgsrc/pkgtools/revbump/files/Attic/finddepends (expand / switch to unified diff)

--- pkgsrc/pkgtools/revbump/files/Attic/finddepends 2013/03/17 15:27:18 1.7
+++ pkgsrc/pkgtools/revbump/files/Attic/finddepends 2013/10/21 10:43:28 1.8
@@ -1,17 +1,17 @@ @@ -1,17 +1,17 @@
1#!@PERL@ -w 1#!@PERL@ -w
2# -*- perl -*- 2# -*- perl -*-
3# 3#
4# $NetBSD: finddepends,v 1.7 2013/03/17 15:27:18 obache Exp $ 4# $NetBSD: finddepends,v 1.8 2013/10/21 10:43:28 wiz Exp $
5# 5#
6# Copyright (c) 2006 The NetBSD Foundation, Inc. 6# Copyright (c) 2006 The NetBSD Foundation, Inc.
7# 7#
8# This code was originally contributed to the NetBSD Foundation, Inc. 8# This code was originally contributed to the NetBSD Foundation, Inc.
9# by Thomas Klausner <wiz@NetBSD.org>. 9# by Thomas Klausner <wiz@NetBSD.org>.
10# 10#
11# Redistribution and use in source and binary forms, with or without 11# Redistribution and use in source and binary forms, with or without
12# modification, are permitted provided that the following conditions 12# modification, are permitted provided that the following conditions
13# are met: 13# are met:
14# 1. Redistributions of source code must retain the above copyright 14# 1. Redistributions of source code must retain the above copyright
15# notice, this list of conditions and the following disclaimer. 15# notice, this list of conditions and the following disclaimer.
16# 2. Redistributions in binary form must reproduce the above copyright 16# 2. Redistributions in binary form must reproduce the above copyright
17# notice, this list of conditions and the following disclaimer in 17# notice, this list of conditions and the following disclaimer in
@@ -98,26 +98,28 @@ while ($pattern = pop @searchlist) { @@ -98,26 +98,28 @@ while ($pattern = pop @searchlist) {
98# print "** Adding $key\n"; 98# print "** Adding $key\n";
99 print "$key\n"; 99 print "$key\n";
100 push @searchlist, $key; 100 push @searchlist, $key;
101 push @bl3result, $key; 101 push @bl3result, $key;
102 } 102 }
103 } 103 }
104} 104}
105 105
106print "\n"; 106print "\n";
107 107
108@makefiles = <$PKGSRCDIR/*/*/Makefile*>; 108@makefiles = <$PKGSRCDIR/*/*/Makefile*>;
109@optionfiles = <$PKGSRCDIR/*/*/options.mk>; 109@optionfiles = <$PKGSRCDIR/*/*/options.mk>;
110push(@makefiles, @optionfiles); 110push(@makefiles, @optionfiles);
 111@optionfiles = <$PKGSRCDIR/*/*/mozilla-common.mk>;
 112push(@makefiles, @optionfiles);
111 113
112for $makefile (@makefiles) { 114for $makefile (@makefiles) {
113# print "* reading $makefile\n"; 115# print "* reading $makefile\n";
114 open OUT, $makefile or die "can't open $makefile"; 116 open OUT, $makefile or die "can't open $makefile";
115 $content = ""; 117 $content = "";
116 while (<OUT>) { 118 while (<OUT>) {
117 chomp($_); 119 chomp($_);
118 $content .= $_; 120 $content .= $_;
119 } 121 }
120 close OUT; 122 close OUT;
121 $found = 0; 123 $found = 0;
122 for $pattern (@bl3result) { 124 for $pattern (@bl3result) {
123 if ($content =~ m/\Q$pattern/) { 125 if ($content =~ m/\Q$pattern/) {

cvs diff -r1.15 -r1.16 pkgsrc/pkgtools/revbump/files/Attic/revbump.1 (expand / switch to unified diff)

--- pkgsrc/pkgtools/revbump/files/Attic/revbump.1 2013/05/18 13:22:57 1.15
+++ pkgsrc/pkgtools/revbump/files/Attic/revbump.1 2013/10/21 10:43:28 1.16
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1.\" $NetBSD: revbump.1,v 1.15 2013/05/18 13:22:57 wiz Exp $ 1.\" $NetBSD: revbump.1,v 1.16 2013/10/21 10:43:28 wiz Exp $
2.\" 2.\"
3.\" Copyright (c) 2003, 2004, 2005, 2006, 2010, 2012, 2013 The NetBSD Foundation, Inc. 3.\" Copyright (c) 2003, 2004, 2005, 2006, 2010, 2012, 2013 The NetBSD Foundation, Inc.
4.\" 4.\"
5.\" This code was originally contributed to the NetBSD Foundation, Inc. 5.\" This code was originally contributed to the NetBSD Foundation, Inc.
6.\" by Julio Merino <jmmv@NetBSD.org> and Thomas Klausner <wiz@NetBSD.org>. 6.\" by Julio Merino <jmmv@NetBSD.org> and Thomas Klausner <wiz@NetBSD.org>.
7.\" 7.\"
8.\" Redistribution and use in source and binary forms, with or without 8.\" Redistribution and use in source and binary forms, with or without
9.\" modification, are permitted provided that the following conditions 9.\" modification, are permitted provided that the following conditions
10.\" are met: 10.\" are met:
11.\" 1. Redistributions of source code must retain the above copyright 11.\" 1. Redistributions of source code must retain the above copyright
12.\" notice, this list of conditions and the following disclaimer. 12.\" notice, this list of conditions and the following disclaimer.
13.\" 2. Redistributions in binary form must reproduce the above copyright 13.\" 2. Redistributions in binary form must reproduce the above copyright
14.\" notice, this list of conditions and the following disclaimer in 14.\" notice, this list of conditions and the following disclaimer in
@@ -21,27 +21,27 @@ @@ -21,27 +21,27 @@
21.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND 21.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND
22.\" CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, 22.\" CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
23.\" INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 23.\" INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
24.\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 24.\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
25.\" IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY 25.\" IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY
26.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE 27.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
28.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 28.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
29.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 29.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
30.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 30.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
31.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN 31.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
32.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33.\" 33.\"
34.Dd May 18, 2013 34.Dd October 21, 2013
35.Dt REVBUMP 1 35.Dt REVBUMP 1
36.Os 36.Os
37.Sh NAME 37.Sh NAME
38.Nm revbump 38.Nm revbump
39.Nd tool to help bump PKGREVISIONs automatically 39.Nd tool to help bump PKGREVISIONs automatically
40.Sh SYNOPSIS 40.Sh SYNOPSIS
41.Nm 41.Nm
42.Op Fl h 42.Op Fl h
43.Op Fl p Ar pkgsrcdir 43.Op Fl p Ar pkgsrcdir
44.Op cat1/pkg1 ... catN/pkgN 44.Op cat1/pkg1 ... catN/pkgN
45.Sh DESCRIPTION 45.Sh DESCRIPTION
46.Nm 46.Nm
47is a perl script for pkgsrc developers that simplifies bumping 47is a perl script for pkgsrc developers that simplifies bumping
@@ -77,34 +77,34 @@ x11/glib2 @@ -77,34 +77,34 @@ x11/glib2
77EOF 77EOF
78.Ed 78.Ed
79.Pp 79.Pp
80The complete procedure for a recursive dependency bump for 80The complete procedure for a recursive dependency bump for
81category/package using 81category/package using
82.Nm 82.Nm
83and 83and
84.Xr blbump 1 84.Xr blbump 1
85would be: 85would be:
86.Bd -literal -offset indent 86.Bd -literal -offset indent
87cd /usr/pkgsrc 87cd /usr/pkgsrc
88finddepends category/package \*[Gt] allbump 88finddepends category/package \*[Gt] allbump
89grep buildlink3.mk allbump | sed 's/.buildlink3.mk//' \*[Gt] bl3bump 89grep buildlink3.mk allbump | sed 's/.buildlink3.mk//' \*[Gt] bl3bump
90grep Makefile.common allbump > commonbump 90grep -e Makefile.common -e mozilla-common.mk allbump > commonbump
91[read commonbump and replace entries with all packages including the 91[read commonbump and replace entries with all packages including the
92 corresponding Makefile.common file] 92 corresponding Makefile.common or mozilla-common.mk file]
93cat allbump commonbump | sed 's,/[^/]*$,,' | sort -u \*[Gt] makebump 93cat allbump commonbump | sed 's,/[^/]*$,,' | sort -u \*[Gt] makebump
94revbump \*[Lt] makebump \*[Gt] makebump.manual 94revbump \*[Lt] makebump \*[Gt] makebump.manual
95[if a package is listed in makebump.manual outside a line 95[if a package is listed in makebump.manual outside a line
96"Updated ... from ... to ...", handle the PKGREVISION bump manually] 96"Updated ... from ... to ...", handle the PKGREVISION bump manually]
97blbump \*[Lt] bl3bump \*[Gt] bl3bump.manual 97blbump \*[Lt] bl3bump \*[Gt] bl3bump.manual
98[handle the *ABI_DEPENDS* bumps in bl3bump.manual manually, usually none] 98[handle the *ABI_DEPENDS* bumps in bl3bump.manual manually, usually none]
99cvs diff `cat makebump` 99cvs diff `cat makebump` | less
100[look for PYPKGPREFIX -\*[Gt] py27 100[look for PYPKGPREFIX -\*[Gt] py27
101 and RUBY_PKGPREFIX -\*[Gt] ruby19 expansions 101 and RUBY_PKGPREFIX -\*[Gt] ruby19 expansions
102 in buildlink files and any unrelated diffs you have in your 102 in buildlink files and any unrelated diffs you have in your
103 local tree, and fix them] 103 local tree, and fix them]
104cvs diff `cat bl3bump makebump` 104cvs diff `cat bl3bump makebump` | less
105cvs commit `cat bl3bump makebump` 105cvs commit `cat bl3bump makebump`
106rm allbump bl3bump* makebump* commonbump 106rm allbump bl3bump* makebump* commonbump
107.Ed 107.Ed
108.Sh SEE ALSO 108.Sh SEE ALSO
109.Xr blbump 1 , 109.Xr blbump 1 ,
110.Xr finddepends 1 110.Xr finddepends 1