This utility function saves us having to fragment the *_hostflags
variables any further when adding special cases. A particular special
case can strip out things it doesn't like.
No callers yet.
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
./cs-job-create $flight $job $recipe $global_runvars "$@"
}
+hostflags_strip () {
+ # prints $1, which is a list of hostflags, with hostflags
+ # matching the perl regexp $2 removed
+ perl -Mstrict -we '
+ my @f = split /\,/, $ARGV[0];
+ @f = grep { !m{$ARGV[1]} } @f;
+ print join ",", @f or die $!;
+ ' "$@"
+}
+
set_hostos_runvars () {
# caller should have done
# local hostos_runvars