A collection of helpful scripts for contributing to Terra!
- Download the scripts you want from
/scripts. - Move each script to
/usr/local/bin/so they can be called as commands:
sudo mv </path/to/script_filename> /usr/local/bin/ && chmod -x /usr/local/bin/<script_filename>- Call scripts by running their filename as a command. e.g.
rpmdateorldd-dnf <arg>.
Note
You can also run these scripts without moving them to /usr/local/bin by calling them with ./path/to/<script_filename>.
You may need to chmod -x <script_filename> first to enable executability.
Each script has its own -h flag for usage information.
| Name | Useage | Command |
|---|---|---|
| changelog | Generates metadata for a changelog entry. | changelog |
| format-license | Formats the build output of %cargo_license_summary_online and %tauri_summary_license_online into a human-readable license expression. |
format-license "<raw license build output>" |
| ldd-dnf | Finds libraries that a package dynamically links to, automatically getting the name of each package that provides them. | getcommit <git repo url> |
| getcommit | Fetches and formats the latest commit hash and date for a given git repository. Useful for nightly packages. | ldd-dnf <path/to/binary.rpm> |
- Once more scripts get added, a CLI tool that includes all the scripts and corresponding
-hflags should be created and packaged. - Add documentation for how/when/why to use each script.
- Add guide for contributing new scripts.
ldd-dnf,rpmdate: june@fyralabs.comformat-license,getcommit: jonah@fyralabs.com