From 200eb22b52f6775b9a7ba69ca86c5d045fc9788c Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 22 Jan 2009 09:08:50 +0000 Subject: abuild: added REPODEST This will let user specify a directory where the repositories are. Setting REPODEST will override PKGDEST. --- buildrepo | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'buildrepo') diff --git a/buildrepo b/buildrepo index fe24d8f..33f08e5 100755 --- a/buildrepo +++ b/buildrepo @@ -36,6 +36,7 @@ purge() { trap 'rm -f "$tmp"; exit 1' INT ( listpackages "$1") >$tmp ls *.apk 2>/dev/null | grep -v -w -f $tmp | xargs rm 2>/dev/null + return 0 } build() { @@ -46,7 +47,7 @@ build() { for i in */APKBUILD; do ( cd ${i%/*} || return 1 - PKGDEST="$repodir/$repo" abuild -k -r || return 1 + REPODEST="$repodir" abuild -k -r || return 1 ) || return 1 done cd "$repodir/$repo" -- cgit v1.2.3-70-g09d2