]> git.donarmstrong.com Git - debhelper.git/blobdiff - dh_auto_configure
Add dpkg_architecture_value and sourcepackage to Dh_Lib
[debhelper.git] / dh_auto_configure
index 41f6210fb29cce210fa902cf7ef969e5bcc4060a..0445c34395231791287ea747655dcdda37fcc780 100755 (executable)
@@ -40,29 +40,6 @@ or override the standard parameters that dh_auto_configure passes.
 
 init();
 
-sub dpkg_architecture_value {
-       my $var=shift;
-       my $value=`dpkg-architecture -q$var 2>/dev/null` || error("dpkg-architecture failed");
-       chomp $value;
-       return $value;
-}
-
-sub sourcepackage {
-       open (CONTROL, 'debian/control') ||
-               error("cannot read debian/control: $!\n");
-       while (<CONTROL>) {
-               chomp;
-               s/\s+$//;
-               if (/^Source:\s*(.*)/) {
-                       close CONTROL;
-                       return $1;
-               }
-       }
-
-       close CONTROL;
-       error("could not find Source: line in control file.");
-}
-
 if (-x "configure") {
        # Standard set of options for configure.
        my @opts;