Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pre_build_script support #8

Merged
merged 1 commit into from
Jan 20, 2024
Merged

Conversation

mingaldrichgan
Copy link
Contributor

  • Add pre_build_script support, similar to post_build_script.
    • For backwards compatibility with existing zmake.json files, context.config.get("pre_build_script", "") is called instead of context.config["post_build_script"] to avoid errors if "pre_build_script" is undefined.
  • Expand both pre_build_script and post_build_script contents with os.path.expanduser to expand ~ into the user's home directory.
  • Fix a typo in the README.

- Add `pre_build_script` support, similar to `post_build_script`.
  - For backwards compatibility with existing `zmake.json` files, `context.config.get("pre_build_script", "")` is called instead of `context.config["post_build_script"]` to avoid errors if `"pre_build_script"` is undefined.
- Expand both `pre_build_script` and `post_build_script` contents with `os.path.expanduser` to expand `~` into the user's home directory.
- Fix a typo in the README.
@melianmiko melianmiko merged commit ee57603 into melianmiko:master Jan 20, 2024
@mingaldrichgan mingaldrichgan deleted the pre branch January 20, 2024 15:09
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.

2 participants