Blame SOURCES/collection_readme.sh

d018ad
#!/bin/bash
d018ad
d018ad
set -euxo pipefail
d018ad
d018ad
readme_md=${1:-"lsr_role2collection/collection_readme.md"}
d018ad
d018ad
sed -i -e '/## Currently supported distributions/{:1;/## Dependencies/!{N;b 1};s|.*|## Dependencies|}' \
6379e2
    -e 's/Linux/Red Hat Enterprise Linux/g' \
d018ad
    -e 's/Ansible Galaxy/Automation Hub/g' \
d018ad
    -e 's/fedora\(.\)linux_system_roles/redhat\1rhel_system_roles/g' \
d018ad
    -e 's/linux-system-roles/rhel-system-roles/g' \
d018ad
    -e '/## Documentation/{:a;/## Support/!{N;b a};s|.*|## Documentation\nThe official RHEL System Roles documentation can be found in the [Product Documentation section of the Red Hat Customer Portal](https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/administration_and_configuration_tasks_using_system_roles_in_rhel/index).\n\n## Support|}' \
9d4a29
    -e 's/
$//' \
d018ad
    $readme_md