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" 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