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 info for a changelog entry based on your git config. | changelog |
| format-license | Formats the build output of %cargo_license_summary_online and %tauri_summary_license_online into a proper string for the RPM License: tag. |
format-license "<raw license build output>" |
| ldd-dnf | Finds libraries that a binary dynamically links to, and gets the name of each package that provides them. | ldd-dnf <path/to/binary.rpm> |
| getcommit | Fetches and formats the latest commit hash and date for a given git repository for when packaging nightly packages. | getcommit <git repo url> |
With Terra installed, run:
dnf install terra-scripts- Once more scripts get added, a CLI tool that includes all the scripts should be created and packaged.
- Add guide for contributing new scripts.
ldd-dnf,rpmdate: june@fyralabs.comformat-license,getcommit: jonah@fyralabs.companda: jade@fyralabs.com