summaryrefslogtreecommitdiff
path: root/Debian/Debhelper/Buildsystem.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-04-20 15:16:06 -0400
committerJoey Hess <joey@gnu.kitenet.net>2009-04-20 15:16:06 -0400
commit0f0e1958b7a71c6323703bbe6415f2f333555f88 (patch)
treeb333f4efaf838a287da43418ba831b1477501936 /Debian/Debhelper/Buildsystem.pm
parent9ba005949259f0e9bcd9a3a094607d615be1eebd (diff)
unimportant code changes
Diffstat (limited to 'Debian/Debhelper/Buildsystem.pm')
-rw-r--r--Debian/Debhelper/Buildsystem.pm18
1 files changed, 9 insertions, 9 deletions
diff --git a/Debian/Debhelper/Buildsystem.pm b/Debian/Debhelper/Buildsystem.pm
index 78d14e70..5bebfe2e 100644
--- a/Debian/Debhelper/Buildsystem.pm
+++ b/Debian/Debhelper/Buildsystem.pm
@@ -32,7 +32,7 @@ sub NAME {
# Description of the build system to be shown to the users.
sub DESCRIPTION {
- "basic debhelper build system class (please provide description)";
+ error("class lacking a DESCRIPTION");
}
# Default build directory. Can be overriden in the derived
@@ -160,14 +160,6 @@ sub get_rel2builddir_path {
return $path;
}
-sub _cd {
- my ($this, $dir)=@_;
- if (! $dh{NO_ACT}) {
- verbose_print("cd $dir");
- chdir $dir or error("error: unable to chdir to $dir");
- }
-}
-
# Creates a build directory.
sub mkdir_builddir {
my $this=shift;
@@ -176,6 +168,14 @@ sub mkdir_builddir {
}
}
+sub _cd {
+ my ($this, $dir)=@_;
+ if (! $dh{NO_ACT}) {
+ verbose_print("cd $dir");
+ chdir $dir or error("error: unable to chdir to $dir");
+ }
+}
+
# Changes working directory the build directory (if needed), calls doit(@_)
# and changes working directory back to the source directory.
sub doit_in_builddir {