From 0b72c64a033a92876acc91344f9580cd276942d1 Mon Sep 17 00:00:00 2001 From: special Date: Tue, 17 Jul 2007 08:26:25 +0000 Subject: [PATCH] Added the execruntime() function for Compile/Linker flags - executes shell commands at compile time rather than during configure git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7458 e03df62e-2008-0410-955e-edbf42e46eb7 --- make/utilities.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/make/utilities.pm b/make/utilities.pm index c00a541b3..5b09b764e 100644 --- a/make/utilities.pm +++ b/make/utilities.pm @@ -315,6 +315,10 @@ sub translate_functions($$) chomp($replace); $line =~ s/exec\("(.+?)"\)/$replace/; } + while ($line =~ /execruntime\("(.+?)"\)/) + { + $line =~ s/execruntime\("(.+?)"\)/`\1`/; + } while ($line =~ /eval\("(.+?)"\)/) { print "Evaluating perl code for module \033[1;32m$module\033[0m ... "; -- 2.39.5