2
0
Эх сурвалжийг харах

antlr4: improve copy file

star9029 9 сар өмнө
parent
commit
01f5ddee30

+ 1 - 4
packages/a/antlr4/xmake.lua

@@ -25,10 +25,7 @@ package("antlr4")
     end)
 
     on_install("@windows", "@linux", "@macosx", function (package)
-        local source = "antlr-" .. package:version() .. "-complete.jar"
-        local target = path.join(package:installdir("lib"), "antlr-complete.jar")
-        os.vcp("../" .. source, package:installdir("lib"))
-        os.vmv(package:installdir("lib", source), target)
+        os.vcp(package:originfile(), path.join(package:installdir("lib"), "antlr-complete.jar"))
     end)
 
     on_test(function (package)