From 4c91ca06dbe2c8e716e1e38231596da82530326b Mon Sep 17 00:00:00 2001 From: Samuel Cochran Date: Tue, 4 Feb 2020 15:48:36 +1100 Subject: [PATCH 1/4] Add `--interactive` to `brew reinstall` More often than I realised, I want to `brew reinstall --build-from-source --interactive $FORMULA` to add some custom configuration. It seems like a useful addition? --- Library/Homebrew/cmd/reinstall.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Library/Homebrew/cmd/reinstall.rb b/Library/Homebrew/cmd/reinstall.rb index 6b0f6ea588850..e622c52308e28 100644 --- a/Library/Homebrew/cmd/reinstall.rb +++ b/Library/Homebrew/cmd/reinstall.rb @@ -26,6 +26,10 @@ def reinstall_args "or a shell inside the temporary build directory." switch "-s", "--build-from-source", description: "Compile from source even if a bottle is available." + switch "-i", "--interactive", + description: "Download and patch , then open a shell. This allows the user to "\ + "run `./configure --help` and otherwise determine how to turn the software "\ + "package into a Homebrew package." switch "--force-bottle", description: "Install from a bottle if it exists for the current or newest version of "\ "macOS, even if it would not normally be used for installation." From b9a90e355b7383d4b2e9138a75a64bfb6c117e64 Mon Sep 17 00:00:00 2001 From: Samuel Cochran Date: Wed, 5 Feb 2020 10:21:17 +1100 Subject: [PATCH 2/4] brew man --- docs/Manpage.md | 2 ++ manpages/brew.1 | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/docs/Manpage.md b/docs/Manpage.md index 6e5d4b2e612b9..d370b40cd97a6 100644 --- a/docs/Manpage.md +++ b/docs/Manpage.md @@ -403,6 +403,8 @@ the reinstalled formulae or, every 30 days, for all formulae. If brewing fails, open an interactive debugging session with access to IRB or a shell inside the temporary build directory. * `-s`, `--build-from-source`: Compile *`formula`* from source even if a bottle is available. +* `-i`, `--interactive`: + Download and patch *`formula`*, then open a shell. This allows the user to run `./configure --help` and otherwise determine how to turn the software package into a Homebrew package. * `--force-bottle`: Install from a bottle if it exists for the current or newest version of macOS, even if it would not normally be used for installation. * `--keep-tmp`: diff --git a/manpages/brew.1 b/manpages/brew.1 index 80063b63e98bf..0c4704d5a3900 100644 --- a/manpages/brew.1 +++ b/manpages/brew.1 @@ -518,6 +518,10 @@ If brewing fails, open an interactive debugging session with access to IRB or a Compile \fIformula\fR from source even if a bottle is available\. . .TP +\fB\-i\fR, \fB\-\-interactive\fR +Download and patch \fIformula\fR, then open a shell\. This allows the user to run \fB\./configure \-\-help\fR and otherwise determine how to turn the software package into a Homebrew package\. +. +.TP \fB\-\-force\-bottle\fR Install from a bottle if it exists for the current or newest version of macOS, even if it would not normally be used for installation\. . From b922ebec2a461c984491a32e63951026f5009858 Mon Sep 17 00:00:00 2001 From: Samuel Cochran Date: Thu, 6 Feb 2020 09:57:49 +1100 Subject: [PATCH 3/4] Add `--interactive` to `brew upgrade` --- Library/Homebrew/cmd/upgrade.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Library/Homebrew/cmd/upgrade.rb b/Library/Homebrew/cmd/upgrade.rb index 7ff9cba77e227..97b8fb1f3e114 100644 --- a/Library/Homebrew/cmd/upgrade.rb +++ b/Library/Homebrew/cmd/upgrade.rb @@ -28,6 +28,10 @@ def upgrade_args "or a shell inside the temporary build directory." switch "-s", "--build-from-source", description: "Compile from source even if a bottle is available." + switch "-i", "--interactive", + description: "Download and patch , then open a shell. This allows the user to "\ + "run `./configure --help` and otherwise determine how to turn the software "\ + "package into a Homebrew package." switch "--force-bottle", description: "Install from a bottle if it exists for the current or newest version of "\ "macOS, even if it would not normally be used for installation." From 8cd017765655508e40f74a3c01fc7e74b6442453 Mon Sep 17 00:00:00 2001 From: Samuel Cochran Date: Thu, 6 Feb 2020 09:58:10 +1100 Subject: [PATCH 4/4] brew man --- docs/Manpage.md | 2 ++ manpages/brew.1 | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/docs/Manpage.md b/docs/Manpage.md index d370b40cd97a6..b110240007056 100644 --- a/docs/Manpage.md +++ b/docs/Manpage.md @@ -584,6 +584,8 @@ the upgraded formulae or, every 30 days, for all formulae. If brewing fails, open an interactive debugging session with access to IRB or a shell inside the temporary build directory. * `-s`, `--build-from-source`: Compile *`formula`* from source even if a bottle is available. +* `-i`, `--interactive`: + Download and patch *`formula`*, then open a shell. This allows the user to run `./configure --help` and otherwise determine how to turn the software package into a Homebrew package. * `--force-bottle`: Install from a bottle if it exists for the current or newest version of macOS, even if it would not normally be used for installation. * `--fetch-HEAD`: diff --git a/manpages/brew.1 b/manpages/brew.1 index 0c4704d5a3900..2e3bfb15bb9e3 100644 --- a/manpages/brew.1 +++ b/manpages/brew.1 @@ -726,6 +726,10 @@ If brewing fails, open an interactive debugging session with access to IRB or a Compile \fIformula\fR from source even if a bottle is available\. . .TP +\fB\-i\fR, \fB\-\-interactive\fR +Download and patch \fIformula\fR, then open a shell\. This allows the user to run \fB\./configure \-\-help\fR and otherwise determine how to turn the software package into a Homebrew package\. +. +.TP \fB\-\-force\-bottle\fR Install from a bottle if it exists for the current or newest version of macOS, even if it would not normally be used for installation\. .