forked from epics-base/epics-base
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Perl for filtering MAKEFLAGS properly
Requires moving the checkflags code into CONFIG_BASE as that's where FIND_TOOL gets defined. Fixes epics-base#545
- Loading branch information
Showing
4 changed files
with
35 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/env perl | ||
# | ||
# Filter all versions of GNU Make's MAKEFLAGS variable to return | ||
# only the single-letter flags. The content differed slightly | ||
# between 3.81, 3.82 and 4.0; Apple still ship 3.81. | ||
|
||
use strict; | ||
|
||
my @flags; | ||
foreach (@ARGV) { | ||
last if m/^--$/ or m/\w+=/; | ||
next if m/^--/ or m/^-$/; | ||
push @flags, $_; | ||
}; | ||
print join(' ', @flags); |