ostree/packages/substitute-gitversion.sh
Colin Walters c746f3b37c packages: Tweak srpm command
This spec should be usable for both embedded dependencies and not.
2012-09-20 18:00:06 -04:00

8 lines
182 B
Bash
Executable File

#!/bin/bash
set -e
git_version=$(git describe)
git_version_rpm=$(echo ${git_version} | sed -e 's,-,\.,g' -e 's,^v,,')
exec sed -e "s,^Version:.*,Version: ${git_version_rpm}," "$@"