]> git.donarmstrong.com Git - debhelper.git/commitdiff
Use the term "build step" instead of "build action" everywhere in the source.
authorModestas Vainius <modestas@vainius.eu>
Mon, 8 Jun 2009 09:58:16 +0000 (12:58 +0300)
committerModestas Vainius <modestas@vainius.eu>
Mon, 8 Jun 2009 09:58:16 +0000 (12:58 +0300)
I'm going to use this new term in documentation. I have never liked "action"
in this context, just couldn't think of anything better.

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/Dh_Buildsystems.pm

index 5bebfe2e2ed5853b86404c1b9ecbd6b5858ff93d..d546d20b6f738c6583e07b83ce895536e00f8a7c 100644 (file)
@@ -45,7 +45,7 @@ sub DEFAULT_BUILD_DIRECTORY {
 # - builddir -     specifies build directory to use. If not specified,
 #                  in-source build will be performed. If undef or empty,
 #                  DEFAULT_BUILD_DIRECTORY will be used.
-# - build_action - set this parameter to the name of the build action
+# - build_step -   set this parameter to the name of the build step
 #                  if you want the object to determine its is_buidable
 #                  status automatically (with check_auto_buildable()).
 #                  Do not pass this parameter if is_buildable flag should
@@ -66,9 +66,9 @@ sub new {
                        $this->{builddir} = $this->DEFAULT_BUILD_DIRECTORY();
                }
        }
-       if (exists $opts{build_action}) {
-               if (defined $opts{build_action}) {
-                       $this->{is_buildable} = $this->check_auto_buildable($opts{build_action});
+       if (exists $opts{build_step}) {
+               if (defined $opts{build_step}) {
+                       $this->{is_buildable} = $this->check_auto_buildable($opts{build_step});
                }
                else {
                        $this->{is_buildable} = 0;
@@ -84,7 +84,7 @@ sub is_buildable {
 }
 
 # This instance method is called to check if the build system is capable
-# to auto build a source package. Additional argument $action describes
+# to auto build a source package. Additional argument $step describes
 # which operation the caller is going to perform (either configure,
 # build, test, install or clean). You must override this method for the
 # build system module to be ever picked up automatically. This method is
@@ -95,7 +95,7 @@ sub is_buildable {
 # path to the files in the build directory.
 sub check_auto_buildable {
        my $this=shift;
-       my ($action) = @_;
+       my ($step) = @_;
        return 0;
 }
 
@@ -208,20 +208,20 @@ sub clean_builddir {
 }
 
 
-# Instance method that is called before performing any action (see below).
+# Instance method that is called before performing any step (see below).
 # Action name is passed as an argument. Derived classes overriding this
 # method should also call SUPER implementation of it.
-sub pre_action {
+sub pre_step {
        my $this=shift;
-       my ($action)=@_;
+       my ($step)=@_;
 }
 
-# Instance method that is called after performing any action (see below).
+# Instance method that is called after performing any step (see below).
 # Action name is passed as an argument. Derived classes overriding this
 # method should also call SUPER implementation of it.
-sub post_action {
+sub post_step {
        my $this=shift;
-       my ($action)=@_;
+       my ($step)=@_;
 }
 
 # The instance methods below provide support for configuring,
@@ -229,8 +229,8 @@ sub post_action {
 # In case of failure, the method may just error() out.
 #
 # These methods should be overriden by derived classes to
-# implement buildsystem specific actions needed to build the
-# source. Arbitary number of custom action arguments might be
+# implement buildsystem specific steps needed to build the
+# source. Arbitary number of custom step arguments might be
 # passed. Default implementations do nothing.
 sub configure {
        my $this=shift;
index fcdc256797a6dc0f1d709263e01ecc943519db09..d7018bb253156db22d659483269420afc0420e2d 100644 (file)
@@ -17,10 +17,10 @@ sub DESCRIPTION {
 
 sub check_auto_buildable {
        my $this=shift;
-       my ($action)=@_;
+       my ($step)=@_;
 
        # Handle configure; the rest - next class
-       if ($action eq "configure") {
+       if ($step eq "configure") {
                return -x "configure";
        }
        return 0;
index 8bdbabbbb1d514e9af5776db0f15b39778937e97..bb038727bd35fbcc356138c3062475430bc35123 100644 (file)
@@ -16,9 +16,9 @@ sub DESCRIPTION {
 
 sub check_auto_buildable {
        my $this=shift;
-       my ($action)=@_;
+       my ($step)=@_;
        my $ret = -e "CMakeLists.txt";
-       $ret &&= $this->SUPER::check_auto_buildable(@_) if $action ne "configure";
+       $ret &&= $this->SUPER::check_auto_buildable(@_) if $step ne "configure";
        return $ret;
 }
 
index 244ef30d7c062ff95385e6b65780b0438ccc1b04..4f15152bd49fe0a31ff4f9100bc4f241397b81f5 100644 (file)
@@ -55,10 +55,10 @@ sub new {
 
 sub check_auto_buildable {
        my $this=shift;
-       my ($action) = @_;
+       my ($step) = @_;
 
        # Handles build, test, install, clean; configure - next class
-       if (grep /^\Q$action\E$/, qw{build test install clean}) {
+       if (grep /^\Q$step\E$/, qw{build test install clean}) {
                # This is always called in the source directory, but generally
                # Makefiles are created (or live) in the the build directory.
                return -e $this->get_buildpath("Makefile") ||
index ce69f4ce55c2fdb87a02633c667eadd1702709b3..929d9e90fb316065abd18f891b6ad0674f7a2fc1 100644 (file)
@@ -15,11 +15,11 @@ sub DESCRIPTION {
 }
 
 sub check_auto_buildable {
-       my ($this, $action) = @_;
+       my ($this, $step) = @_;
 
        # Handles everything
        my $ret = -e "Build.PL";
-       if ($action ne "configure") {
+       if ($step ne "configure") {
                $ret &&= -e "Build";
        }
        return $ret;
index 46dda4f8306b5dd5669a924b6ad4d09847377131..36586e4312a41f25e561550a81790e3cbb5decd4 100644 (file)
@@ -16,10 +16,10 @@ sub DESCRIPTION {
 
 sub check_auto_buildable {
        my $this=shift;
-       my ($action)=@_;
+       my ($step)=@_;
 
        # Handles configure, install; the rest - next class
-       if ($action eq "install" || $action eq "configure") {
+       if ($step eq "install" || $step eq "configure") {
                return -e "Makefile.PL";
        }
        else {
index afb03dd7bf0139b9ec1d3f9d3cb23cac416a7bb5..80b66887c2e8a62133ec2d155c3acc56a982fa4f 100644 (file)
@@ -45,7 +45,7 @@ sub create_buildsystem_instance {
 }
 
 sub load_buildsystem {
-       my ($action, $system)=@_;
+       my ($step, $system)=@_;
        if (defined $system) {
                my $inst = create_buildsystem_instance($system);
                return $inst;
@@ -53,7 +53,7 @@ sub load_buildsystem {
        else {
                # Try to determine build system automatically
                for $system (@BUILDSYSTEMS) {
-                       my $inst = create_buildsystem_instance($system, build_action=>$action);
+                       my $inst = create_buildsystem_instance($system, build_step=>$step);
                        if ($inst->is_buildable()) {
                                return $inst;
                        }
@@ -90,24 +90,24 @@ sub buildsystems_init {
 }
 
 sub buildsystems_list {
-       my $action=shift;
+       my $step=shift;
 
        # List buildsystems (including auto and specified status)
        my ($auto, $specified);
        for my $system (@BUILDSYSTEMS) {
-               my $inst = create_buildsystem_instance($system, build_action => undef);
+               my $inst = create_buildsystem_instance($system, build_step => undef);
                my $is_specified = defined $opt_buildsys && $opt_buildsys eq $inst->NAME();
                if (! defined $specified && defined $opt_buildsys && $opt_buildsys eq $inst->NAME()) {
                        $specified = $inst->NAME();
                }
-               elsif (! defined $auto && $inst->check_auto_buildable($action)) {
+               elsif (! defined $auto && $inst->check_auto_buildable($step)) {
                        $auto = $inst->NAME();
                }
                printf("%s - %s\n", $inst->NAME(), $inst->DESCRIPTION());
        }
        # List a specified 3rd party buildsystem too.
        if (! defined $specified && defined $opt_buildsys) {
-               my $inst = create_buildsystem_instance($opt_buildsys, build_action => undef);
+               my $inst = create_buildsystem_instance($opt_buildsys, build_step => undef);
                printf("%s - %s.\n", $inst->NAME(), $inst->DESCRIPTION());
                $specified = $inst->NAME();
        }
@@ -119,27 +119,27 @@ sub buildsystems_list {
 }
 
 sub buildsystems_do {
-       my $action=shift;
+       my $step=shift;
 
-       if (!defined $action) {
-               $action = basename($0);
-               $action =~ s/^dh_auto_//;
+       if (!defined $step) {
+               $step = basename($0);
+               $step =~ s/^dh_auto_//;
        }
 
-       if (grep(/^\Q$action\E$/, qw{configure build test install clean}) == 0) {
-               error("unrecognized build action: " . $action);
+       if (grep(/^\Q$step\E$/, qw{configure build test install clean}) == 0) {
+               error("unrecognized build step: " . $step);
        }
 
        if ($opt_list) {
-               buildsystems_list($action);
+               buildsystems_list($step);
                exit 0;
        }
 
-       my $buildsystem = load_buildsystem($action, $opt_buildsys);
+       my $buildsystem = load_buildsystem($step, $opt_buildsys);
        if (defined $buildsystem) {
-               $buildsystem->pre_action($action);
-               $buildsystem->$action(@_, @{$dh{U_PARAMS}});
-               $buildsystem->post_action($action);
+               $buildsystem->pre_step($step);
+               $buildsystem->$step(@_, @{$dh{U_PARAMS}});
+               $buildsystem->post_step($step);
        }
        return 0;
 }