From 1469b3d3b3636301c00d9ddb449d011d75694cd7 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Mon, 13 Mar 2017 09:52:20 +0000 Subject: [PATCH 1/2] Don't set $cc in build.sh if already exists, i.e. for cc="mipsel-linux-gnu-cc" ./build.sh --- build.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 1f96be7..b28f90d 100755 --- a/build.sh +++ b/build.sh @@ -2,7 +2,9 @@ set -e tar="tar" -cc="cc" +if [ ! $cc ]; then + cc="cc" +fi if [ "$(uname -s)" = "OpenBSD" -o "$(uname -s)" = "FreeBSD" -o "$(uname -s)" = "NetBSD" ]; then echo "Detected *BSD" From 9ae9261fcbb76ecbdaf9aad3478707b14d92a13a Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Mon, 13 Mar 2017 10:05:07 +0000 Subject: [PATCH 2/2] Don't set $ARCH in deb/build.sh if already exists --- deb/build.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/deb/build.sh b/deb/build.sh index 307bd3c..76aa483 100755 --- a/deb/build.sh +++ b/deb/build.sh @@ -1,7 +1,9 @@ #!/bin/sh set -e VERSION=`cat ../version`-0 -ARCH=`dpkg --print-architecture` +if [ ! $ARCH ]; then + ARCH=`dpkg --print-architecture` +fi rm -r data 2>/dev/null || true cp -r static data mkdir -p data/usr data/usr/sbin data/DEBIAN