summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-04-01 12:43:05 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-04-01 12:43:05 +0000
commitd48b86e8a2864c77ecb024589fe2d948adfa805e (patch)
treea4d3bb3a9ebb7aa23df9bddc2de470de828f2eff
parent68ce72c7ba5ed02adc32f6d341001b155802c90b (diff)
downloadabuild-d48b86e8a2864c77ecb024589fe2d948adfa805e.tar.gz
abuild-d48b86e8a2864c77ecb024589fe2d948adfa805e.tar.bz2
abuild-d48b86e8a2864c77ecb024589fe2d948adfa805e.tar.xz
abuild-d48b86e8a2864c77ecb024589fe2d948adfa805e.zip
abuild: added feature to (un)install all build dependencies in one shot
-rwxr-xr-xabuild10
1 files changed, 10 insertions, 0 deletions
diff --git a/abuild b/abuild
index d739b37..58d892f 100755
--- a/abuild
+++ b/abuild
@@ -701,6 +701,14 @@ newaport() {
fi
}
+
+installdeps() {
+ sudo apk add $depends $makedepends
+}
+
+uninstalldeps (){
+ sudo apk del $depends $makedepends
+}
usage() {
echo "$(basename $0) $abuild_ver"
@@ -739,6 +747,8 @@ usage() {
echo " cleancache Remove downloaded files from \$SRCDEST"
echo " srcpkg Make a source package"
echo " up2date Compare target and sources dates"
+ echo " installdeps Install packages listed in makedepends and depends"
+ echo " uninstalldeps Uninstall packages listed in makedepends and depends"
echo ""
exit 0
}