Skip to content

Conversation

@fcr--
Copy link

@fcr-- fcr-- commented Feb 8, 2021

This PR adds support for luajit on vert, or at least it tries to.

Since I only tested it on my computer (ubuntu 20.04 LTS on amd64), I did not yet add it to the documentation, specially since I feel the chances of this working on windows may be rather slim. That said I think all in all this is worthwhile.

LUA_VERSION="%s"
VERT="%s"
LUA_VERSION="%{lua_version}"
VERT="%{prefix}"
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think a syntax like this for the templates is nicer than using the %s we had before.

end

activate_file:write(string.format(template, lua_version, prefix))
activate_file:write((template:gsub("%%{([%w_]+)}", function(var)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of %s, this replaces %{var_name} with the content of params.var_name (or an empty string if not defined)

fcr-- and others added 3 commits May 25, 2021 19:49
Now we have to grab the .tar.gz files from the repository, and guess the
commit version that is reflected in the extracted directory path.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant