From 592c7aca7522253266e7311baf80fc83367e265a Mon Sep 17 00:00:00 2001
From: Seyed Pouria Mousavizadeh Tehrani
Date: Fri, 12 Jan 2024 14:01:07 +0330
Subject: [PATCH] build: make buildtest.sh BSD compatible
Signed-off-by: Seyed Pouria Mousavizadeh Tehrani
---
buildtest.sh | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/buildtest.sh b/buildtest.sh
index 7edc4a5ee1dd..3d6012ac51ac 100755
--- a/buildtest.sh
+++ b/buildtest.sh
@@ -37,9 +37,10 @@ trap errfunc ERR
COMMITREF="$1"
COMMITISH="`git rev-list --max-count=1 ${COMMITREF:-HEAD}`"
-TEMP="`mktemp -t -d frrbuild.XXXXXX`"
+TEMP="`mktemp -d -t frrbuild.XXXXXX`"
BASE="`pwd`"
CONFIGS="$2"
+MAKE="${MAKE:-make}"
echo using temporary directory: $TEMP
echo git commit used:
@@ -59,7 +60,7 @@ echo -e "\n\n\n\n\033[33;1mmaking dist tarball\033[m"
mkdir build_dist
cd build_dist
../source/configure
-make distdir=sdist dist-gzip
+${MAKE} distdir=sdist dist-gzip
cd ..
tar zxvf build_dist/sdist.tar.gz