From: special Date: Tue, 17 Jul 2007 08:26:25 +0000 (+0000) Subject: Added the execruntime() function for Compile/Linker flags - executes shell commands... X-Git-Tag: v2.0.23~4967 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=0b72c64a033a92876acc91344f9580cd276942d1;p=user%2Fhenk%2Fcode%2Finspircd.git 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 --- 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 ... ";