summaryrefslogtreecommitdiff
path: root/Debian
diff options
context:
space:
mode:
Diffstat (limited to 'Debian')
-rw-r--r--Debian/Debhelper/Dh_Buildsystems.pm32
1 files changed, 15 insertions, 17 deletions
diff --git a/Debian/Debhelper/Dh_Buildsystems.pm b/Debian/Debhelper/Dh_Buildsystems.pm
index 5a3e45f4..0a48693f 100644
--- a/Debian/Debhelper/Dh_Buildsystems.pm
+++ b/Debian/Debhelper/Dh_Buildsystems.pm
@@ -95,31 +95,29 @@ sub buildsystems_list {
my $action=shift;
# List buildsystems (including auto and specified status)
- my $auto_found;
- my $specified_found;
- print "STATUS (* auto, + specified) NAME - DESCRIPTION", "\n";
+ my ($auto, $specified);
for my $system (@BUILDSYSTEMS) {
my $inst = create_buildsystem_instance($system, build_action => undef);
my $is_specified = defined $opt_buildsys && $opt_buildsys eq $inst->NAME();
- my $status;
- if ($is_specified) {
- $status = "+";
- $specified_found = 1;
+ if (! defined $specified && defined $opt_buildsys && $opt_buildsys eq $inst->NAME()) {
+ $specified = $inst->NAME();
}
- elsif (!$auto_found && $inst->check_auto_buildable($action)) {
- $status = "*";
- $auto_found = 1;
+ elsif (! defined $auto && $inst->check_auto_buildable($action)) {
+ $auto = $inst->NAME();
}
- else {
- $status = " ";
- }
- printf("%s %s - %s.\n", $status, $inst->NAME(), $inst->DESCRIPTION());
+ printf("%s - %s\n", $inst->NAME(), $inst->DESCRIPTION());
}
- # List a 3rd party buildsystem too.
- if (!$specified_found && defined $opt_buildsys) {
+ # List a specified 3rd party buildsystem too.
+ if (! defined $specified && defined $opt_buildsys) {
my $inst = create_buildsystem_instance($opt_buildsys, build_action => undef);
- printf("+ %s - %s.\n", $inst->NAME(), $inst->DESCRIPTION());
+ printf("%s - %s.\n", $inst->NAME(), $inst->DESCRIPTION());
+ $specified = $inst->NAME();
}
+ print "\n";
+ print "Auto-selected: $auto\n" if defined $auto;
+ print "Specified: $specified\n" if defined $specified;
+ print "No system auto-selected or specified\n"
+ if ! defined $auto && ! defined $specified;
}
sub buildsystems_do {