abuild: minor cleanup

This commit is contained in:
Natanael Copa 2009-10-24 19:18:35 +00:00
parent 46aed95754
commit 74debd67ce

View File

@ -11,6 +11,7 @@
abuild_ver=@VERSION@
sysconfdir=@sysconfdir@
apkcache=@apkcache@
datadir=@datadir@
startdir="$PWD"
srcdir=${srcdir:-"$startdir/src"}
@ -23,17 +24,12 @@ repo=${repo##*/}
SRCDEST=${SRCDEST:-$startdir}
PKGDEST=${PKGDEST:-$startdir}
BUILD_BASE="build-base"
SUDO=${SUDO:-"sudo"}
default_cmds="sanitycheck builddeps clean fetch unpack mkusers rootpkg apkcache"
# read config
ABUILD_CONF=${ABUILD_CONF:-"$sysconfdir/abuild.conf"}
[ -f "$ABUILD_CONF" ] && . "$ABUILD_CONF"
# source functions
datadir=/usr/share/abuild
#colors
if [ -n "$USE_COLORS" ]; then