commit 13327203e0d934b034ef32807501b10612c3bf76
parent da0ac58ecc15abe119bd8ec65496f25f6ac5b830
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Sun, 28 Jun 2020 13:15:40 +0200
build: use a more dependable method for detecting a build from git
The Haiku recipe seems to detect a .git directory somewhere, even though
they are building from a tarball. So, check instead for the presence of
nano's release script, which ought to be present only in a git checkout,
not in a released tarball.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
@@ -59,7 +59,7 @@ AC_DEFINE_DIR([PKGDATADIR], [pkgdatadir], [Where data are placed to.])
dnl Whether this is a git repository.
AC_MSG_CHECKING([whether building from git])
-if test -d .git ; then
+if test -f roll-a-release.sh ; then
AC_MSG_RESULT([yes])
from_git=yes
else