summaryrefslogtreecommitdiff
path: root/Ports/.port_include.sh
diff options
context:
space:
mode:
authorpancake <pancake@nopcode.org>2021-07-08 00:43:44 +0200
committerGunnar Beutner <gunnar@beutner.name>2021-07-08 15:42:51 +0200
commitf1266335e74400520180b10919bd916a7d9a2233 (patch)
tree336bc5547fa9a07b9ddb5a122592168392a616a0 /Ports/.port_include.sh
parente72448888bcd31d3faf3f3fa5c8f98a15d6de047 (diff)
downloadserenity-f1266335e74400520180b10919bd916a7d9a2233.zip
Ports: Add './package.sh shell' to get a shell with the build env set
Diffstat (limited to 'Ports/.port_include.sh')
-rwxr-xr-xPorts/.port_include.sh11
1 files changed, 10 insertions, 1 deletions
diff --git a/Ports/.port_include.sh b/Ports/.port_include.sh
index 08a6bcc41c..fd6f7dff7a 100755
--- a/Ports/.port_include.sh
+++ b/Ports/.port_include.sh
@@ -489,13 +489,22 @@ do_all() {
do_install "${1:-}"
}
+do_shell() {
+ do_installdepends
+ do_fetch
+ do_patch
+ cd "$workdir"
+ bash
+ echo "End of package shell. Back to the User shell."
+}
+
NO_GPG=false
parse_arguments() {
if [ -z "${1:-}" ]; then
do_all
else
case "$1" in
- fetch|patch|configure|build|install|installdepends|clean|clean_dist|clean_all|uninstall|showproperty)
+ fetch|patch|shell|configure|build|install|installdepends|clean|clean_dist|clean_all|uninstall|showproperty)
method=$1
shift
do_${method} "$@"