aboutsummaryrefslogtreecommitdiffstats
path: root/testcase/posix_var.mk
diff options
context:
space:
mode:
Diffstat (limited to 'testcase/posix_var.mk')
-rw-r--r--testcase/posix_var.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/testcase/posix_var.mk b/testcase/posix_var.mk
index 5574f09..8065d3a 100644
--- a/testcase/posix_var.mk
+++ b/testcase/posix_var.mk
@@ -1,6 +1,6 @@
# TODO(go): Fix
-MAKEVER:=$(shell make --version | ruby -n0e 'puts $$_[/Make (\d)/,1]')
+MAKEVER:=$(shell make --version | grep "Make [0-9]" | sed -E 's/.*Make ([0-9]).*/\1/')
# GNU make 3.82 has this feature though.
ifeq ($(MAKEVER),3)