summaryrefslogtreecommitdiff
path: root/cflags.SH
diff options
context:
space:
mode:
authorAaron Crane <arc@cpan.org>2017-01-06 17:03:21 +0000
committerAaron Crane <arc@cpan.org>2017-01-07 13:56:11 +0000
commitd4914d8c1ae391758a02494120b9d3ed874ef93d (patch)
tree59041890a1d0b5baa19686ac0cc90f05fcf4d843 /cflags.SH
parent3f6f109670ef9e4ebb8c7325d4e0fc6ad3e89894 (diff)
downloadperl-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-xcflags.SH8
1 files changed, 4 insertions, 4 deletions
diff --git a/cflags.SH b/cflags.SH
index bd32840407..3af1e97a38 100755
--- a/cflags.SH
+++ b/cflags.SH
@@ -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