]> git.donarmstrong.com Git - debhelper.git/commitdiff
Some cosmetic changes in the comments and strings.
authorModestas Vainius <modestas@vainius.eu>
Mon, 15 Jun 2009 13:20:11 +0000 (16:20 +0300)
committerModestas Vainius <modestas@vainius.eu>
Wed, 17 Jun 2009 19:44:31 +0000 (22:44 +0300)
* buildsystem -> build system
* dh_auto build system -> debhelper build system
* plugin -> class
* a few rewording changes in the comments.
* Enhance python_distutils::DESCRIPTION().

Debian/Debhelper/Buildsystem.pm
Debian/Debhelper/Buildsystem/autoconf.pm
Debian/Debhelper/Buildsystem/cmake.pm
Debian/Debhelper/Buildsystem/makefile.pm
Debian/Debhelper/Buildsystem/perl_build.pm
Debian/Debhelper/Buildsystem/perl_makemaker.pm
Debian/Debhelper/Buildsystem/python_distutils.pm
Debian/Debhelper/Dh_Buildsystems.pm
t/buildsystems/buildsystem_tests

index d144cf519d7b01d0237d7b3277031dc8bb87b158..da43b7d76ee86f544bd7c3e01df6b2dca9e402ff 100644 (file)
@@ -1,4 +1,4 @@
-# Defines debhelper buildsystem class interface and implementation
+# Defines debhelper build system class interface and implementation
 # of common functionality.
 #
 # Copyright: © 2008-2009 Modestas Vainius
@@ -13,7 +13,7 @@ use File::Spec;
 use Debian::Debhelper::Dh_Lib;
 
 # Cache DEB_BUILD_GNU_TYPE value. Performance hit of multiple
-# invocations is noticable when listing buildsystems.
+# invocations is noticable when listing build systems.
 our $DEB_BUILD_GNU_TYPE = dpkg_architecture_value("DEB_BUILD_GNU_TYPE");
 
 # Build system name. Defaults to the last component of the class
@@ -26,7 +26,7 @@ sub NAME {
                return $1;
        }
        else {
-               error("ınvalid buildsystem class name: $class");
+               error("ınvalid build system class name: $class");
        }
 }
 
@@ -120,7 +120,7 @@ sub enforce_in_source_building {
 # Derived class can call this method in its constructor to enforce
 # out of source building even if the user didn't request it. However,
 # if $builddir is specified, accept it even if it matches the source
-# directory (soft mode).
+# directory (i.e. out of source is prefered to in source).
 sub enforce_out_of_source_building {
        my ($this, $builddir) = @_;
        if (!defined $this->get_builddir()) {
@@ -347,7 +347,7 @@ sub post_building_step {
 # In case of failure, the method may just error() out.
 #
 # These methods should be overriden by derived classes to
-# implement buildsystem specific steps needed to build the
+# implement build system specific steps needed to build the
 # source. Arbitary number of custom step arguments might be
 # passed. Default implementations do nothing.
 sub configure {
index c92e2c1f1785c2080f965ce71cd80e3ecd31be0d..60fa9e8511dd3a0ef9905f2b99ac1f8d6069a454 100644 (file)
@@ -1,4 +1,4 @@
-# A buildsystem plugin for handling autoconf based projects
+# A debhelper build system class for handling Autoconf based projects
 #
 # Copyright: © 2008 Joey Hess
 #            © 2008-2009 Modestas Vainius
index 057f327b2e0050945faa042521485138adc2e636..c2a3769dd37ce78de15eb22ae3b58bcba51a7130 100644 (file)
@@ -1,5 +1,5 @@
-# A buildsystem plugin for handling CMake based projects.
-# It enforces out of source tree building.
+# A debhelper build system class for handling CMake based projects.
+# It prefers out of source tree building.
 #
 # Copyright: © 2008-2009 Modestas Vainius
 # License: GPL-2+
@@ -25,7 +25,7 @@ sub new {
        my $class=shift;
        my $this=$class->SUPER::new(@_);
        my %args=@_;
-       # Enforce out of source tree building (soft mode).
+       # Prefer out of source tree building.
        $this->enforce_out_of_source_building($args{builddir});
        return $this;
 }
index 6a9e68778d25d4c973f3c82e7e8864282e097cd6..d84d3349bad49a96dd06811f0904016a7365e5ab 100644 (file)
@@ -1,4 +1,4 @@
-# A buildsystem plugin for handling simple Makefile based projects.
+# A debhelper build system class for handling simple Makefile based projects.
 #
 # Copyright: © 2008 Joey Hess
 #            © 2008-2009 Modestas Vainius
index 525b0e1c6b2c974e94fc54005ab95196cfee63b2..3567cb1a7386c56818e313555d75f96473609bfb 100644 (file)
@@ -1,4 +1,4 @@
-# A buildsystem plugin for handling Perl Build based projects.
+# A build system class for handling Perl Build based projects.
 #
 # Copyright: © 2008-2009 Joey Hess
 #            © 2008-2009 Modestas Vainius
index 4281fa26c88460fc5e3773bf6123967e01ff49c9..07a827ac259914c13c0f94ca304efc02a7b6f8c8 100644 (file)
@@ -1,4 +1,4 @@
-# A buildsystem plugin for handling Perl MakeMaker based projects.
+# A debhelper build system class for handling Perl MakeMaker based projects.
 #
 # Copyright: © 2008-2009 Joey Hess
 #            © 2008-2009 Modestas Vainius
index 264117362803718a396b10864e4abe09870e0be3..d05e381527655587aa0a1d4aee64bb8482560b23 100644 (file)
@@ -1,5 +1,5 @@
-# A buildsystem plugin for building Python Distutils based
-# projects.
+# A debhelper build system class for building Python Distutils based
+# projects. It prefers out of source tree building.
 #
 # Copyright: © 2008 Joey Hess
 #            © 2008-2009 Modestas Vainius
@@ -13,7 +13,7 @@ use Debian::Debhelper::Dh_Lib qw(error);
 use base 'Debian::Debhelper::Buildsystem';
 
 sub DESCRIPTION {
-       "Python distutils"
+       "Python Distutils (setup.py)"
 }
 
 sub DEFAULT_BUILD_DIRECTORY {
index 6748a74629d64dd77a25e9e0fab809db4710e94b..0e11dba875575a5133635e7763f119c9bbaece72 100644 (file)
@@ -1,4 +1,4 @@
-# A module for loading and managing debhelper buildsystem plugins.
+# A module for loading and managing debhelper build system plugins.
 # This module is intended to be used by all dh_auto_* helper commands.
 #
 # Copyright: © 2009 Modestas Vainius
@@ -15,7 +15,7 @@ use base 'Exporter';
 our @EXPORT=qw(&buildsystems_init &buildsystems_do &load_buildsystem &load_all_buildsystems);
 
 # Historical order must be kept for backwards compatibility. New
-# buildsystems MUST be added to the END of the list.
+# build systems MUST be added to the END of the list.
 our @BUILDSYSTEMS = (
     "autoconf",
     "perl_makemaker",
@@ -38,7 +38,7 @@ sub create_buildsystem_instance {
 
        eval "use $module";
        if ($@) {
-               error("unable to load buildsystem class '$system': $@");
+               error("unable to load build system class '$system': $@");
        }
 
        if (!exists $bsopts{builddir} && defined $opt_builddir) {
@@ -50,8 +50,8 @@ sub create_buildsystem_instance {
        return $module->new(%bsopts);
 }
 
-# Similar to create_buildsystem_instance(), but it attempts to autoselect
-# a buildsystem if none was specified. In case autoselection fails, undef
+# Similar to create_build system_instance(), but it attempts to autoselect
+# a build system if none was specified. In case autoselection fails, undef
 # is returned.
 sub load_buildsystem {
        my $system=shift;
@@ -88,15 +88,15 @@ sub load_all_buildsystems {
                }
        }
 
-       # Push debhelper built-in buildsystems first
+       # Push debhelper built-in build systems first
        for my $name (@BUILDSYSTEMS) {
-               error("debhelper built-in buildsystem '$name' could not be found/loaded")
+               error("debhelper built-in build system '$name' could not be found/loaded")
                    if not exists $buildsystems{$name};
                push @buildsystems, $buildsystems{$name};
                delete $buildsystems{$name};
        }
 
-       # The rest are 3rd party buildsystems
+       # The rest are 3rd party build systems
        for my $name (keys %buildsystems) {
                my $inst = $buildsystems{$name};
                $inst->{thirdparty} = 1;
@@ -132,7 +132,7 @@ sub buildsystems_init {
 sub buildsystems_list {
        my $step=shift;
 
-       # List buildsystems (including auto and specified status)
+       # List build systems (including auto and specified status)
        my ($auto, $specified);
        my @buildsystems = load_all_buildsystems();
        for my $inst (@buildsystems) {
index 031828b7bcc28f38a48d04b55d81da6eedad0cb8..42d7f5848a7f7e6c78cec8a580b27d79f5a467bd 100755 (executable)
@@ -139,7 +139,7 @@ $bs = $BS_CLASS->new(builddir => undef, sourcedir => "autoconf");
 );
 test_buildsystem_paths_api($bs, "default builddir, sourcedir=autoconf", \%tmp);
 
-# Enforce "hard" out of source tree building
+# Enforce out of source tree building
 # sourcedir=builddir=autoconf hence default builddir is implied
 $bs = $BS_CLASS->new(builddir => "autoconf", sourcedir => "autoconf/");
 $bs->enforce_out_of_source_building();
@@ -160,7 +160,7 @@ $bs = $BS_CLASS->new(builddir => "autoconf", sourcedir => "autoconf");
 );
 test_buildsystem_paths_api($bs, "no builddir, sourcedir=autoconf", \%tmp);
 
-# Enforce "soft" out of source tree building when
+# Prefer out of source tree building when
 # sourcedir=builddir=autoconf hence builddir should be dropped.
 $bs->enforce_out_of_source_building("autoconf");
 test_buildsystem_paths_api($bs, "soft out of source enforced, sourcedir=builddir", \%tmp);