r49174 - in /trunk/libconfig-model-perl/debian: README.debian dh/dh_config_model_upgrade
ddumont-guest at users.alioth.debian.org
ddumont-guest at users.alioth.debian.org
Tue Dec 22 15:43:37 UTC 2009
Author: ddumont-guest
Date: Tue Dec 22 15:43:10 2009
New Revision: 49174
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=49174
Log:
further clarification on debian files
Modified:
trunk/libconfig-model-perl/debian/README.debian
trunk/libconfig-model-perl/debian/dh/dh_config_model_upgrade
Modified: trunk/libconfig-model-perl/debian/README.debian
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libconfig-model-perl/debian/README.debian?rev=49174&op=diff
==============================================================================
--- trunk/libconfig-model-perl/debian/README.debian (original)
+++ trunk/libconfig-model-perl/debian/README.debian Tue Dec 22 15:43:10 2009
@@ -33,11 +33,14 @@
- directly call dh_config_model_upgrade. See
dh_config_model_upgrade man page for more details
-Note to developer for embedded system: you can remove all dependencies
-on Config::Model and Perl by removing dh_config_model_upgrade call
-from rules
+Note to developer for embedded system: dh_config_model_upgrade will do
+nothing is DH_NO_ACT is set or if DEB_BUILD_OPTIONS contains
+'noconfigmodel'
-(Simple instructions for CDBS should be provided. Help is welcome there)
+CDBD users should add a like this in rules:
+
+build/foo::
+ dh_config_model_upgrade --model Foo
How does this work ?
--------------------
Modified: trunk/libconfig-model-perl/debian/dh/dh_config_model_upgrade
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libconfig-model-perl/debian/dh/dh_config_model_upgrade?rev=49174&op=diff
==============================================================================
--- trunk/libconfig-model-perl/debian/dh/dh_config_model_upgrade (original)
+++ trunk/libconfig-model-perl/debian/dh/dh_config_model_upgrade Tue Dec 22 15:43:10 2009
@@ -39,7 +39,14 @@
# See debhelper(7)
-exit if $dh{NO_ACT};
+if ($dh{NO_ACT}) {
+ exit;
+}
+
+if ($ENV{DEB_BUILD_OPTIONS} =~ /noconfigmodel/) {
+ warn "dh_config_model_upgrade: DEB_BUILD_OPTIONS specifies 'noconfigmodel', exiting ...\n";
+ exit;
+}
my @do_packages = @{$dh{DOPACKAGES}} ;
@@ -268,6 +275,11 @@
Using options with a single dash (e.g. C<-model_name> instead of
C<--model_name>) will lead to "C<Unknown option>" errors.
+=head1 ENVIRONMENT
+
+This program will exit(0) if C<DH_NO_ACT> is set or if C<DEB_BUILD_OPTIONS>
+contains C<noconfigmodel>.
+
=head1 SEE ALSO
L<debhelper>
More information about the Pkg-perl-cvs-commits
mailing list