github workflow: try to fix the empty version

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2020-02-19 11:01:40 +01:00
parent bcacde5109
commit 3ca6cd71ae

View file

@ -52,6 +52,7 @@ jobs:
cd alsa-utils
mv configure.ac configure.ac.old
version=$(git describe | sed -e 's/v//')
if test -z "$version"; then version=$(git describe --tags | sed -e 's/v//'); fi
echo "Version: ${version}"
sed -r "s/AC_INIT\(alsa-utils,.*\)/AC_INIT(alsa-utils, ${version})/" < configure.ac.old > configure.ac.tmp
sed -e 's;po/Makefile.in;;' < configure.ac.tmp > configure.ac