2 ###############################################################################
3 # Copyright (c) 2000-2015 Ericsson Telecom AB
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Eclipse Public License v1.0
6 # which accompanies this distribution, and is available at
7 # http://www.eclipse.org/legal/epl-v10.html
8 ###############################################################################
18 if ($Config{sig_name} && $Config{sig_num}) {
21 my @names = split ' ', $Config{sig_name};
22 @sig_num{@names} = split ' ', $Config{sig_num};
24 $sig_name[$sig_num{$_}] ||= $_;
27 return $sig_name[$signr];
36 # This script runs the makefilegen test repeatedly, with every possible combination
37 # of the makefilegen options below:
39 my @options = qw( a g m R s );
40 # -a use absolute pathnames
41 # -g Makefile for GNU make
42 # -m always use makedepend for deps, even for GNU make
46 # -l NO!!! dynamic linking: ruins the build
49 #sub mix {@_ ? map {my $x = $_; map "$x$_", mix(@_[1..$#_])} @{$_[0]} : ""}
50 #print for mix @options;
52 # Generate the power set of @options
53 # From http://rosettacode.org/wiki/Power_set#Perl
56 ?
map { $_,[$_[0],@
$_] } p
(@_[1..$#_])
60 my @powerset = p
(@options);
62 #use Data::Dump qw(pp);
68 my $rc = system("echo \\'@$_\\'; make clean all MFGEN_FLAGS=-d@$_ >make_@$_.out 2>&1 || echo FAIL");
69 # The -d option is there ------------------------------------^ to always have an option after the dash
70 # `makefilegen -` will cause an error otherwise
71 die "Child caught a SIG" . signame
($rc & 127) if ($rc & 127);
This page took 0.070499 seconds and 5 git commands to generate.