Skip to content
Snippets Groups Projects
Commit 9b860345 authored by Thomas Woerner's avatar Thomas Woerner
Browse files

Support namespace and name in utils/build-galaxy-release.sh as args

The currently used namespace and collection name are hard coded in
utils/build-galaxy-release.sh. They can now be defined as args 1 and 2
and default to freeipa and ansible_freeipa..
parent 23310e50
Branches
Tags
No related merge requests found
#!/bin/bash
namespace="freeipa"
collection="ansible_freeipa"
namespace="${1:freeipa}"
collection="${2:ansible_freeipa}"
collection_prefix="${namespace}.${collection}"
galaxy_version=$(git describe --tags | sed -e "s/^v//")
echo $galaxy_version | grep "-" -q || galaxy_version="${galaxy_version}"
sed -i -e "s/version: .*/version: \"$galaxy_version\"/" galaxy.yml
sed -i -e "s/namespace: .*/namespace: \"$namespace\"/" galaxy.yml
sed -i -e "s/name: .*/name: \"$collection\"/" galaxy.yml
find . -name "*~" -exec rm {} \;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment