Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix build on systems with Perl > 5.12.0 (Ubuntu 11.10 Oneiric, Mac OS…

… X) due to split() incompatibility

thanks mauke from #perl on freenode!
"split() no longer modifies @_ when called in scalar or void context. In void context it now produces a "Useless use of split" warning. This was also a perl 5.12.0 change that missed the perldelta."
  • Loading branch information...
commit 32667e1043f7f4c54de669ca8ab079c5f5d2ca43 1 parent 6600084
chris erway cce authored
Showing with 1 addition and 1 deletion.
  1. +1 −1 
2 
@@ -4,7 +4,7 @@
define thrift_template
-XTARGET := $(shell perl -e '@val = split("\/","$(2)"); $$last = pop(@val);split("\\.",$$last);print "$(1)/"."gen-cpp/"."@_[0]"."_types.cpp\n"' )
+XTARGET := $(shell perl -e '$$_ = $$ARGV[1]; s{^.*/}{}; s{\..*}{}; print "$$ARGV[0]/gen-cpp/$${_}_types.cpp\n"' '$(1)' '$(2)')
ifneq ($$(XBUILT_SOURCES),)
Please sign in to comment.
Something went wrong with that request. Please try again.