aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2020-09-11 13:50:02 +0000
committermerakor <cem@ckyln.com>2020-09-11 13:50:02 +0000
commit498908070d9cb2c068d7509ac3bbdc897fc1aacc (patch)
treedcb2e37a6a8bdb7e3307b62c0ef7610e28cfc597 /src
parent7edad8ab932ab27d7f7be5bd44ac4854861cdf8e (diff)
downloadcpt-498908070d9cb2c068d7509ac3bbdc897fc1aacc.tar.gz
cpt: bi can be run to install all built packages
FossilOrigin-Name: dc69b52d03be5ff2b2e304b8825c48c65e2188df2f7eb239ecaf267e8fae2434
Diffstat (limited to 'src')
-rwxr-xr-xsrc/cpt9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/cpt b/src/cpt
index 0c0f688..aa6b9ea 100755
--- a/src/cpt
+++ b/src/cpt
@@ -38,6 +38,15 @@ case "$arg" in
r|remove) arg=remove ;;
s|search) arg=search ;;
u|update) arg=update ;;
+ bi)
+ # Build and install function for cpt.
+ cpt-build "$@"
+
+ # When building multiple packages, cpt will already ask to install
+ # the packages, so no need for this here.
+ [ "$2" ] || cpt-install "$@"
+ exit
+ ;;
*) glob=1 ;;
esac