From 6f1d6ee41bb773c167b78cf11cc62e0b20c3e346 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Josef=20=C5=A0pa=C4=8Dek?= Date: Tue, 30 Jul 2024 09:52:06 +0200 Subject: [PATCH] Fix autogen.sh There is situation after clone from git repository. .tarball-version doesn't exists in this time. --- autogen.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/autogen.sh b/autogen.sh index 2c83919fc0..f07bbe48b0 100755 --- a/autogen.sh +++ b/autogen.sh @@ -15,7 +15,9 @@ set -x rm -rf autom4te.cache config.status if test -d .git -a -f build-aux/git-version-gen; then git fetch --tags - rm .tarball-version + if [ -f .tarball-version ]; then + rm .tarball-version + fi v=$(build-aux/git-version-gen .tarball-version) echo $v >.tarball-version echo $v >.version