Not documented yet, pending command line.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
our $online;
our $just_linkfarm;
our $leave_nailed;
+our $oot_clean;
#
our %subcmd_props = (
$oot_dir = undef;
return;
}
+ $oot_clean //= cfg_bool qw(oot clean);
$oot_dir //= 'Build';
$oot_absdir = ($oot_dir !~ m{^/} ? "$worksphere/" : ""). $oot_dir;
}
$pre .= <<'ENDPRE';
shift;
ENDPRE
-# $post = <<'ENDCLEAN';
-# clean;
-#ENDCLEAN
+ $post = <<'ENDCLEAN' if $oot_clean && !$just_linkfarm;
+ clean;
+ENDCLEAN
}
my $addpath = (cfg_uc qw(oot path_add)) //
$use eq 'really' ? Types::Serialiser::true : Types::Serialiser::false;