From 498908070d9cb2c068d7509ac3bbdc897fc1aacc Mon Sep 17 00:00:00 2001 From: merakor Date: Fri, 11 Sep 2020 13:50:02 +0000 Subject: cpt: bi can be run to install all built packages FossilOrigin-Name: dc69b52d03be5ff2b2e304b8825c48c65e2188df2f7eb239ecaf267e8fae2434 --- src/cpt | 9 +++++++++ 1 file changed, 9 insertions(+) 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 -- cgit v1.2.3