On 19/06/2023 08:36, Mattia Verga via devel wrote:
I only need to find how to pass branch names to the alias, instead of hardcoding them. From a quick search I need to create a function in .bashrc rather than an alias.
Add to ~/.bashrc: function fpr { for i in f$(rpm -E %fedora) f$(($(rpm -E %fedora) - 1)) rawhide; do fedpkg switch-branch $i if [[ "$i" != "rawhide" ]]; then git merge rawhide fi fedpkg push fedpkg build --nowait done } Usage: cd ~/foo-bar fpr -- Sincerely, Vitaly Zaitsev (vitaly@xxxxxxxxxxxxxx) _______________________________________________ devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue