In some .xsl file downloaded via an own formula of a private tap I want to link to another xsl file installed from the homebrew-core repository.
Now I could just assume that that the default path to all installed packages is
and enter the path by hand into my .xsl file.
What I’d like to do though is take advantage of $HOMEBREW_CELLAR variable and do something like this:
Turns out though you can’t place bash variables inside .xsl files.
Is there a way to replace a pattern in .xsl file (or any file) during installation via homebrew by executing for example a sed command?