]> git.donarmstrong.com Git - debhelper.git/blobdiff - Debian/Debhelper/Dh_Buildsystem.pm
let's write class, not cls
[debhelper.git] / Debian / Debhelper / Dh_Buildsystem.pm
index 573ace2a54e88ef058d2ad38b3e069d408295c92..afb13ea161027116805c797f8ab3a91fbafb3fc7 100644 (file)
@@ -21,12 +21,12 @@ our $DEB_BUILD_GNU_TYPE = dpkg_architecture_value("DEB_BUILD_GNU_TYPE");
 # doing.
 sub NAME {
        my $self=shift;
-       my $cls = ref($self) || $self;
-       if ($cls =~ m/^.+::([^:]+)$/) {
+       my $class = ref($self) || $self;
+       if ($class =~ m/^.+::([^:]+)$/) {
                return $1;
        }
        else {
-               error("ınvalid buildsystem class name: $cls");
+               error("ınvalid buildsystem class name: $class");
        }
 }
 
@@ -55,9 +55,9 @@ sub DEFAULT_BUILD_DIRECTORY {
 # parameters and execute commands to configure build environment if
 # is_buildable flag is set on the object.
 sub new {
-       my ($cls, %opts)=@_;
+       my ($class, %opts)=@_;
 
-       my $self = bless({ builddir => undef, is_buildable => 1 }, $cls);
+       my $self = bless({ builddir => undef, is_buildable => 1 }, $class);
        if (exists $opts{builddir}) {
                if ($opts{builddir}) {
                        $self->{builddir} = $opts{builddir};
@@ -161,7 +161,7 @@ sub get_rel2builddir_path {
 }
 
 sub _cd {
-       my ($cls, $dir)=@_;
+       my ($this, $dir)=@_;
        if (! $dh{NO_ACT}) {
                verbose_print("cd $dir");
                chdir $dir or error("error: unable to chdir to $dir");