[Pkg-mono-svn-commits] rev 979 - mono/trunk/debian

Eduard Bloch blade@haydn.debian.org
Sat, 12 Jun 2004 16:26:59 -0600


Author: blade
Date: 2004-06-12 16:26:56 -0600 (Sat, 12 Jun 2004)
New Revision: 979

Modified:
   mono/trunk/debian/dh_makenetlibs
Log:
The -r auto guessing option


Modified: mono/trunk/debian/dh_makenetlibs
===================================================================
--- mono/trunk/debian/dh_makenetlibs	2004-06-12 20:49:06 UTC (rev 978)
+++ mono/trunk/debian/dh_makenetlibs	2004-06-12 22:26:56 UTC (rev 979)
@@ -11,7 +11,7 @@
 
 =head1 SYNOPSIS
 
-B<dh_makenetlibs> [S<I<debhelper options>>] [B<-m>I<minversion>] [B<-V>I<[dependancies]>] [B<-l>I<nextincompatible>] [B<-X>I<item>]
+B<dh_makenetlibs> [S<I<debhelper options>>] [B<-r>] [B<-V>I<[dependancies]>] [B<-m>I<minversion>] [B<-l>I<nextincompatible>] [B<-X>I<item>]
 
 =head1 DESCRIPTION
 
@@ -62,6 +62,15 @@
 Specifies the (expected) version of this package when the compatibility
 to the current assemblies will break.
 
+=item B<-r>
+
+An experimental option to automaticaly guess the next incompatible
+upstream version and insert them (like working with -l and -m options,
+see above). Do not expect the guessed values to be always correct -
+normally, the usualy assumed version string has the form
+generation.major.minor where versions with changes in "minor" are
+compatible and "major" versions break with compatibility.
+
 =item B<-X>I<item>, B<--exclude=>I<item>
 
 Exclude files that contain "item" anywhere in their filename or directory 
@@ -203,6 +212,14 @@
                   $deps = "$package (>= $version)";
                }
             }
+            if( defined($dh{R_FLAG})) {
+                $version =~ s/-[^-]+$//;
+               my @uvers = split(/\./, $version);
+               $uvers[1]++;
+               $deps = "$package (>= $version), $package (<< ".
+               join(".",@uvers)
+               .")";
+            }
             if( defined($dh{M_PARAMS})) {
                $deps = "$package (>= ".$dh{M_PARAMS}.")";
             }
@@ -243,6 +260,10 @@
 
 This program is a part of mono-utils.
 
+=head1 KNOWN BUGS
+
+Will possibly not work correctly with DH_COMPAT levels 1 and 2.
+
 =head1 AUTHOR
 
 Eduard Bloch <blade@debian.org>, inspired by dh_makeshlibs by Joey Hess <joeyh@debian.org>