summaryrefslogtreecommitdiffstats
path: root/abuild
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-01-22 09:08:50 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-01-22 09:08:50 +0000
commit200eb22b52f6775b9a7ba69ca86c5d045fc9788c (patch)
tree478896c9ca525fc18d999711c4984f722a828051 /abuild
parentdf4dd0e6889b2f486f40c379c7175287926cd8a1 (diff)
downloadabuild-200eb22b52f6775b9a7ba69ca86c5d045fc9788c.tar.bz2
abuild-200eb22b52f6775b9a7ba69ca86c5d045fc9788c.tar.xz
abuild: added REPODEST
This will let user specify a directory where the repositories are. Setting REPODEST will override PKGDEST.
Diffstat (limited to 'abuild')
-rwxr-xr-xabuild15
1 files changed, 11 insertions, 4 deletions
diff --git a/abuild b/abuild
index e7a6650..ebb8086 100755
--- a/abuild
+++ b/abuild
@@ -10,10 +10,6 @@
abuild_ver=1.4.1
-# read config
-MAKEAPK_CONF=${MAKEAPK_CONF:-/etc/abuild.conf}
-[ -f "$MAKEAPK_CONF" ] && . "$MAKEAPK_CONF"
-
# source functions
# if abuild was not run from PATH, then look for func lib at same location
if [ -z "$FUNCLIB" ]; then
@@ -32,6 +28,8 @@ startdir="$PWD"
srcdir=${srcdir:-"$startdir/src"}
pkgdir=${pkgdir:-"$startdir/pkg"}
pkgrel=0
+repo=${startdir%/*}
+repo=${repo##*/}
# defaults
SRCDEST=${SRCDEST:-$startdir}
@@ -40,6 +38,15 @@ BUILD_BASE="binutils gcc make patch uclibc-dev"
default_cmds="sanitycheck builddeps clean fetch unpack rootpkg"
+# read config
+ABUILD_CONF=${ABUILD_CONF:-"/etc/abuild.conf"}
+[ -f "$ABUILD_CONF" ] && . "$ABUILD_CONF"
+
+# If REPODEST is set then it will override the PKGDEST
+if [ -n "$REPODEST" ]; then
+ PKGDEST="$REPODEST/$repo"
+fi
+
set_xterm_title() {
if [ "$TERM" = xterm ]; then
printf "\033]0;$1\007" >&2