Skip to content

Commit

Permalink
fix(lua): copy luarocks_package outputs in mac / linux cross-compatib…
Browse files Browse the repository at this point in the history
…le way
  • Loading branch information
marcuscaisey committed Jun 8, 2024
1 parent 39b744c commit 512c2b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions third_party/lua/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ def luarocks_package(name:str, package:str=None, version:str, deps:list=[], visi
cmd = [
f"$TOOL --tree=tree install --deps-mode=none {package} {version}",
"mkdir _out",
"if [ -d tree/share/lua ]; then cp -r tree/share/lua/*/ _out; fi",
"if [ -d tree/lib/lua ]; then cp -r tree/lib/lua/*/ _out; fi",
"if [ -d tree/share/lua ]; then cp -R $(find tree/share/lua -mindepth 2 -maxdepth 2) _out; fi",
"if [ -d tree/lib/lua ]; then cp -R $(find tree/lib/lua -mindepth 2 -maxdepth 2) _out; fi",
],
exported_deps = deps,
output_dirs = ["_out"],
Expand Down

0 comments on commit 512c2b3

Please sign in to comment.