-e $this->get_buildpath("GNUmakefile"))
{
# This is always called in the source directory, but generally
- # Makefiles are created (or live) in the the build directory.
+ # Makefiles are created (or live) in the build directory.
return 1;
} elsif ($step eq "clean" && defined $this->get_builddir() &&
$this->check_auto_buildable("configure"))
sub new {
my $class=shift;
my $this=$class->SUPER::new(@_);
- # Out of source tree building is prefered.
+ # Out of source tree building is preferred.
$this->prefer_out_of_source_building(@_);
return $this;
}
error "specify a sequence to run";
}
# make -B causes the rules file to be run as a target.
-# Also support completly empty override targets.
+# Also support completely empty override targets.
# Note: it's not safe to use rules_explicit_target before this check,
# since it causes dh to be run.
my $dummy_target="debhelper-fail-me";
}
else {
if (!$not_a_target && /^([^#:]+)::?\s*(.*)$/) {
- # Target is defined. NOTE: if it is a depenency of
+ # Target is defined. NOTE: if it is a dependency of
# .PHONY it will be defined too but that's ok.
# $2 contains target dependencies if any.
$current_target = $1;
}
else {
# Note that all the excludes of odd things like _z
- # are because gzip refuses to compress such files, assumming
+ # are because gzip refuses to compress such files, assuming
# they are zip files. I looked at the gzip source to get the
# complete list of such extensions: ".gz", ".z", ".taz",
# ".tgz", "-gz", "-z", "_z"
complex_doit("find $tmp ! -type l $find_options -print0",
"2>/dev/null | xargs -0r chmod go=rX,u+rw,a-s");
- # Fix up premissions in usr/share/doc, setting everything to not
+ # Fix up permissions in usr/share/doc, setting everything to not
# executable by default, but leave examples directories alone.
complex_doit("find $tmp/usr/share/doc -type f $find_options ! -regex '$tmp/usr/share/doc/[^/]*/examples/.*' -print0 2>/dev/null",
"| xargs -0r chmod 644");
}
doit("install","-p","-m644",$mime,"$tmp/usr/lib/mime/packages/$package");
}
- # Check wether we have to call update-mime (either upstream already
+ # Check whether we have to call update-mime (either upstream already
# installs a MIME information file or Debian provides one)
if ((! $dh{NOSCRIPTS}) && (-d "$tmp/usr/lib/mime/packages")) {
autoscript($package,"postinst","postinst-mime");
}
doit("install", "-p", "-m644", $sharedmimeinfo, "$tmp/usr/share/mime/packages/$package.xml");
}
- # check wether we have to call update-mime-database (either upstream
+ # check whether we have to call update-mime-database (either upstream
# already installs a shared MIME information file or Debian provides
# one)
if ((! $dh{NOSCRIPTS}) && (-d "$tmp/usr/share/mime/packages")) {
# So, we look for files or links to existing files with names that
# match "*.so.*". And we only look at real files not
- # symlinks, so we don't accidentually add shlibs data to -dev
+ # symlinks, so we don't accidentally add shlibs data to -dev
# packages. This may have a few false positives, which is ok,
# because only if we can get a library name and a major number from
# objdump is anything actually added.
$deps=$dh{V_FLAG};
}
else {
- # Call isnative becuase it sets $dh{VERSION}
+ # Call isnative because it sets $dh{VERSION}
# as a side effect.
isnative($package);
my $version = $dh{VERSION};
# Now we need to expand wildcards in @tomove.
# This is only necessary in pre-v3 land -- as of v3, the
- # expension is automatically done by filearray().
+ # expansion is automatically done by filearray().
if (@tomove && compat(2)) {
my @filelist=();
foreach (@tomove) {
}
}
-# If $ret is set, we wern't actually able to find some
+# If $ret is set, we weren't actually able to find some
# files that were specified to be moved, and we should
# exit with the code in $ret. This program puts off
# exiting with an error until all files have been tried
# to be moved, because this makes it easier for some
-# packages that arn't always sure exactly which files need
+# packages that aren't always sure exactly which files need
# to be moved.
exit $ret;
foreach (@shared_libs) {
my $debug_path = make_debug($_, $tmp, $debugtmp) if $keep_debug;
# Note that all calls to strip on shared libs
- # *must* inclde the --strip-unneeded.
+ # *must* include the --strip-unneeded.
doit($strip,"--remove-section=.comment",
"--remove-section=.note","--strip-unneeded",$_);
attach_debug($_, $debug_path) if defined $debug_path;