summaryrefslogtreecommitdiff
path: root/buildrepo
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 /buildrepo
parentdf4dd0e6889b2f486f40c379c7175287926cd8a1 (diff)
downloadabuild-200eb22b52f6775b9a7ba69ca86c5d045fc9788c.tar.gz
abuild-200eb22b52f6775b9a7ba69ca86c5d045fc9788c.tar.bz2
abuild-200eb22b52f6775b9a7ba69ca86c5d045fc9788c.tar.xz
abuild-200eb22b52f6775b9a7ba69ca86c5d045fc9788c.zip
abuild: added REPODEST
This will let user specify a directory where the repositories are. Setting REPODEST will override PKGDEST.
Diffstat (limited to 'buildrepo')
-rwxr-xr-xbuildrepo3
1 files changed, 2 insertions, 1 deletions
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"