Update 2023-06-06 brew now asks for your password so it can install everything directly. Much better!!
The text below is no longer applicable and only kepts as reference.
Reminder to self: this is the procedure to upgrade Libreoffice with Homebrew:
- brew update
- brew upgrade
- open -a /Applications/LibreOffice.app
- Quit the application
- brew reinstall libreoffice-language-pack, enter your password
- open "/usr/local/Caskroom/libreoffice-language-pack/$(cd /usr/local/Caskroom/libreoffice-language-pack; ls -1 | sort -rV | head)/LibreOffice Language Pack.app", click 'Ok', click 'Ok'
Please anyone, please make this simpler...
Update 2021-03-24
Here is a script to remove most of the manual toil:
#!/bin/bash
echo "Initiating Libre Office upgrade"
brew update
brew upgrade libreoffice
open -g -a /Applications/LibreOffice.app
echo "Wait until the application completed startup (it is started in the background)"
read -p "Press enter to quit LibreOffice"
osascript -e 'quit app "LibreOffice"'
APP=$(brew reinstall libreoffice-language-pack | tee /dev/tty | grep "LibreOffice Language Pack.app" | xargs)
open -a "$APP"
echo "The language pack installer has been opened."