From b137e08e8422aea6a552c80d2f2ca7527b391a20 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Sun, 2 May 2021 15:30:00 +0200 Subject: [PATCH] contrib: fix install script to be able to run from tarball The file autogen.sh is not included in tarballs. Use configure.ac instead to detect topdir. Signed-off-by: Joachim Wiberg --- contrib/alpine/install.sh | 2 +- contrib/debian/install.sh | 2 +- contrib/void/install.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/contrib/alpine/install.sh b/contrib/alpine/install.sh index fbf3df9d..db69b143 100755 --- a/contrib/alpine/install.sh +++ b/contrib/alpine/install.sh @@ -10,7 +10,7 @@ fi # Adjust base directory if [ -e alpine-release ]; then cd ../.. -elif [ ! -e autogen.sh ]; then +elif [ ! -e configure.ac ]; then echo "*** Please run this script from the Finit base directory." exit 1 fi diff --git a/contrib/debian/install.sh b/contrib/debian/install.sh index 9926deb5..4a67b773 100755 --- a/contrib/debian/install.sh +++ b/contrib/debian/install.sh @@ -11,7 +11,7 @@ fi grep -q Debian os-release 2>/dev/null if [ $? -eq 0 ]; then cd ../.. -elif [ ! -e autogen.sh ]; then +elif [ ! -e configure.ac ]; then echo "*** Please run this script from the Finit base directory." exit 1 fi diff --git a/contrib/void/install.sh b/contrib/void/install.sh index c85a8ed0..513a2252 100755 --- a/contrib/void/install.sh +++ b/contrib/void/install.sh @@ -10,7 +10,7 @@ fi # Adjust base directory if [ -e xbps ]; then cd ../.. -elif [ ! -e autogen.sh ]; then +elif [ ! -e configure.ac ]; then echo "*** Please run this script from the Finit base directory." exit 1 fi