Skip to content
Snippets Groups Projects
Unverified Commit e16c3ffd authored by Rafael Guterres Jeffman's avatar Rafael Guterres Jeffman Committed by GitHub
Browse files

Merge pull request #441 from t-woerner/galaxy_namespace_arg

Support namespace and name in utils/build-galaxy-release.sh as args
parents 23310e50 9b860345
No related branches found
No related tags found
No related merge requests found
#!/bin/bash #!/bin/bash
namespace="freeipa" namespace="${1:freeipa}"
collection="ansible_freeipa" collection="${2:ansible_freeipa}"
collection_prefix="${namespace}.${collection}" collection_prefix="${namespace}.${collection}"
galaxy_version=$(git describe --tags | sed -e "s/^v//") galaxy_version=$(git describe --tags | sed -e "s/^v//")
echo $galaxy_version | grep "-" -q || galaxy_version="${galaxy_version}" echo $galaxy_version | grep "-" -q || galaxy_version="${galaxy_version}"
sed -i -e "s/version: .*/version: \"$galaxy_version\"/" galaxy.yml 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 {} \; 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