pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/pkgtools/revbump



Module Name:    pkgsrc
Committed By:   wiz
Date:           Sun Mar  8 17:06:16 UTC 2020

Modified Files:
        pkgsrc/pkgtools/revbump: Makefile
        pkgsrc/pkgtools/revbump/files: check-cvs-diff

Log Message:
revbump: 2.15: update check-cvs-diff for current ruby and python versions.


To generate a diff of this commit:
cvs rdiff -u -r1.41 -r1.42 pkgsrc/pkgtools/revbump/Makefile
cvs rdiff -u -r1.2 -r1.3 pkgsrc/pkgtools/revbump/files/check-cvs-diff

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/pkgtools/revbump/Makefile
diff -u pkgsrc/pkgtools/revbump/Makefile:1.41 pkgsrc/pkgtools/revbump/Makefile:1.42
--- pkgsrc/pkgtools/revbump/Makefile:1.41       Sun Jan 26 17:32:00 2020
+++ pkgsrc/pkgtools/revbump/Makefile    Sun Mar  8 17:06:16 2020
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.41 2020/01/26 17:32:00 rillig Exp $
+# $NetBSD: Makefile,v 1.42 2020/03/08 17:06:16 wiz Exp $
 
-PKGNAME=               revbump-2.14
-PKGREVISION=           2
+PKGNAME=               revbump-2.15
 CATEGORIES=            pkgtools
 
 MAINTAINER=            wiz%NetBSD.org@localhost

Index: pkgsrc/pkgtools/revbump/files/check-cvs-diff
diff -u pkgsrc/pkgtools/revbump/files/check-cvs-diff:1.2 pkgsrc/pkgtools/revbump/files/check-cvs-diff:1.3
--- pkgsrc/pkgtools/revbump/files/check-cvs-diff:1.2    Mon Feb  9 00:58:44 2015
+++ pkgsrc/pkgtools/revbump/files/check-cvs-diff        Sun Mar  8 17:06:16 2020
@@ -2,7 +2,7 @@
 # -*- perl -*-
 #
 # read output of (cd /usr/pkgsrc; cvs diff -u ) and check if
-# py{27,34} and ruby200 string are left in buildlink3.mk.
+# py* and ruby* strings are left in buildlink3.mk.
 # They are then modified to Variable representation.
 #"
 use strict;
@@ -15,7 +15,7 @@ $my_name =~ s#(.*)/##;
 
 sub usage(){
     print <<HELP;
-$my_name: 
+$my_name:
     Read cvs diff -u output (of named file) and substitute
     if the string py27, py34 or ruby200 is found in the corresponding
     changes in diff.
@@ -26,12 +26,12 @@ Where:
     -p  pkgsrc directory other than /usr/pkgsrc
     -v  verbose (not actually implemented yet)
     cvs-diff-u_output_file:
-        The name of input. Usually the file including 'cvs diff -u' 
-        output (default cvs-diff) 
+        The name of input. Usually the file including 'cvs diff -u'
+        output (default cvs-diff)
 See Also:
     revbump(1) for how to use it.
 HELP
-}    
+}
 
 sub main() {
     my ($PKGSRCDIR);
@@ -50,9 +50,9 @@ sub main() {
     if ($opts{'p'}) { $PKGSRCDIR = $opts{'p'}; }
     if ($opts{'h'}) { usage() ; exit ;}
 
-   # for using rename, unlink 
+   # for using rename, unlink
     chdir $PKGSRCDIR;
-    
+
     open(CVS_DIFF, $CVS_DIFF) || die "Problem opening file $CVS_DIFF: $!\n";
     while(<CVS_DIFF>){
        # Looking for the +++ filename line in cvs diff (supposed to use 'cvs diff -u')
@@ -69,15 +69,15 @@ sub main() {
                open(EDIT, $file_to_edit ) || print STDERR "Problem opening file $file_to_edit: $! \n";
                while(<EDIT>) {
                    if ( /^BUILDLINK.*py27/ )    {  $_=~    s/py27/\${PYPKGPREFIX}/   ; $edit++;}
-                   if ( /^BUILDLINK.*py34/ )    {  $_=~    s/py34/\${PYPKGPREFIX}/   ;
-                                                   print STDERR "   py34 found at $file_to_edit\n";
+                   if ( /^BUILDLINK.*py3[0-9]/ )    {  $_=~    s/py3[0-9]/\${PYPKGPREFIX}/   ;
+                                                   print STDERR "   py3[0-9] found at $file_to_edit\n";
                                                    ; $edit++;}
-                   if ( /^BUILDLINK.*ruby200/ ) {  $_=~ s/ruby200/\${RUBY_PKGPREFIX}/ ; $edit++;}
+                   if ( /^BUILDLINK.*ruby[0-9][0-9]*/ ) {  $_=~ s/ruby[0-9][0-9]*/\${RUBY_PKGPREFIX}/ ; $edit++;}
                    print NEW $_;
                }
                close(EDIT);
                close(NEW);
-               if ($edit) { unlink $file_to_edit; 
+               if ($edit) { unlink $file_to_edit;
                             rename $new_file, $file_to_edit;
                             $mod++;}
                else {



Home | Main Index | Thread Index | Old Index