diff options
author | Aaron Crane <arc@cpan.org> | 2017-01-06 17:03:21 +0000 |
---|---|---|
committer | Aaron Crane <arc@cpan.org> | 2017-01-07 13:56:11 +0000 |
commit | d4914d8c1ae391758a02494120b9d3ed874ef93d (patch) | |
tree | 59041890a1d0b5baa19686ac0cc90f05fcf4d843 /cflags.SH | |
parent | 3f6f109670ef9e4ebb8c7325d4e0fc6ad3e89894 (diff) | |
download | perl-d4914d8c1ae391758a02494120b9d3ed874ef93d.tar.gz |
cflags.SH: omit a needless process in generated file
Using the shell "case" statement rather than grep(1) will save a process on
every core C file compiled.
Diffstat (limited to 'cflags.SH')
-rwxr-xr-x | cflags.SH | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -485,10 +485,10 @@ for file do # allow variables like toke_cflags to be evaluated - if echo $file | grep -v / >/dev/null - then - eval 'eval ${'"${file}_cflags"'-""}' - fi + case "$file" in + */*) ;; + *) eval 'eval ${'"${file}_cflags"'-""}' ;; + esac # or customize here |