From: martin f. krafft Date: Tue, 6 May 2008 08:39:10 +0000 (+0100) Subject: set defaults for arch and dist X-Git-Url: https://git.madduck.net/code/mbuild.git/commitdiff_plain/ad2d67b62f0664d123ae60227f88aa97fbc73406 set defaults for arch and dist --- diff --git a/mbuild.sh b/mbuild.sh index 1ea10b6..bca4840 100755 --- a/mbuild.sh +++ b/mbuild.sh @@ -59,6 +59,9 @@ for opt in "$@"; do esac done +[ -z "$arch" ] && arch="$(dpkg-architecture -qDEB_BUILD_ARCH)" +[ -z "$dist" ] && dist="sid" + schangesfile_basename="${schangesfile##*/}" packagenameversion="${schangesfile_basename%_*}"