[Replicant] [vendor_replicant] [PATCH] Add support for distributions without mvn-debian

Denis 'GNUtoo' Carikli GNUtoo at cyberdimension.org
Tue Aug 10 13:26:00 UTC 2021


Trisquel 9 doesn't have mvn-debian but has mvn instead.

Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo at cyberdimension.org>
---
 build-toolchain | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/build-toolchain b/build-toolchain
index 3c8f94b2..1bca51a9 100755
--- a/build-toolchain
+++ b/build-toolchain
@@ -164,7 +164,9 @@ fi
 
 # first the simple lib
 cd ../../src/jack/simple
-mvn-debian clean package -Dmaven.test.skip=true
+# Try to use mvn-debian and if it's not available, try to use mvn
+$(basename $(which mvn-debian || which mvn)) \
+	clean package -Dmaven.test.skip=true
 cd ..
 
 # then jack
-- 
2.32.0



More information about the Replicant mailing list