Commit 74debd67 authored by Natanael Copa's avatar Natanael Copa

abuild: minor cleanup

parent 46aed957
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
abuild_ver=@VERSION@ abuild_ver=@VERSION@
sysconfdir=@sysconfdir@ sysconfdir=@sysconfdir@
apkcache=@apkcache@ apkcache=@apkcache@
datadir=@datadir@
startdir="$PWD" startdir="$PWD"
srcdir=${srcdir:-"$startdir/src"} srcdir=${srcdir:-"$startdir/src"}
...@@ -23,17 +24,12 @@ repo=${repo##*/} ...@@ -23,17 +24,12 @@ repo=${repo##*/}
SRCDEST=${SRCDEST:-$startdir} SRCDEST=${SRCDEST:-$startdir}
PKGDEST=${PKGDEST:-$startdir} PKGDEST=${PKGDEST:-$startdir}
BUILD_BASE="build-base" BUILD_BASE="build-base"
SUDO=${SUDO:-"sudo"} SUDO=${SUDO:-"sudo"}
default_cmds="sanitycheck builddeps clean fetch unpack mkusers rootpkg apkcache"
# read config # read config
ABUILD_CONF=${ABUILD_CONF:-"$sysconfdir/abuild.conf"} ABUILD_CONF=${ABUILD_CONF:-"$sysconfdir/abuild.conf"}
[ -f "$ABUILD_CONF" ] && . "$ABUILD_CONF" [ -f "$ABUILD_CONF" ] && . "$ABUILD_CONF"
# source functions
datadir=/usr/share/abuild
#colors #colors
if [ -n "$USE_COLORS" ]; then if [ -n "$USE_COLORS" ]; then
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment