summaryrefslogtreecommitdiffstats
path: root/tools/update-version.sh
blob: e2cd24d7e8af2730ca2f545cfa9375a4acfd65a1 (plain)
1
2
3
4
5
6
7
#!/bin/bash
DIR=$(dirname "$0")
VERSION=$(./tools/get-version.sh)
mkdir -p "${DIR}/../dist"
sed -e "s/VERSION_PLACEHOLDER/${VERSION}/" \
    "${DIR}/../.config/ansible-lint.spec" \
    > "${DIR}/../dist/ansible-lint.spec"