Ports: Add interactive mode to .port_include.sh
Running `./package.sh interactive` in a port directory will spawn a new shell with the serenity build environment set up. This makes porting software much easier as build commands can be run interactively instead of having to modify package.sh just to test things.
This commit is contained in:
parent
b39e516ab3
commit
860d142c8c
Notes:
sideshowbarker
2024-07-17 21:21:25 +09:00
Author: https://github.com/Ivoah Commit: https://github.com/SerenityOS/serenity/commit/860d142c8c5 Pull-request: https://github.com/SerenityOS/serenity/pull/11747
1 changed files with 5 additions and 1 deletions
|
@ -547,8 +547,12 @@ parse_arguments() {
|
|||
shift
|
||||
parse_arguments $@
|
||||
;;
|
||||
interactive)
|
||||
export PS1="(serenity):\w$ "
|
||||
bash --norc
|
||||
;;
|
||||
*)
|
||||
>&2 echo "I don't understand $1! Supported arguments: fetch, patch, configure, build, install, installdepends, clean, clean_dist, clean_all, uninstall, showproperty."
|
||||
>&2 echo "I don't understand $1! Supported arguments: fetch, patch, configure, build, install, installdepends, interactive, clean, clean_dist, clean_all, uninstall, showproperty."
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
|
Loading…
Add table
Reference in a new issue