How to share config and dependency file paths? #4830
Unanswered
marko-asplund
asked this question in
Writing Formulae/Casks
Replies: 1 comment
-
Install the stuff everything else needs as a formula and then depend on that formula in the other formula. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Output of
brew config
Output of
brew doctor
Description of issue
I'd like to use homebrew for delivering a set of scripts.
The scripts have common dependencies and configs, and I'd like to share these between the scripts.
I was thinking of creating config files and a common library for the scripts, both of which the other scripts could the source.
I guess one approach is that during installation time the
install
can get hold of the absolute install path, so if each script includessource /foo/bar/functions.sh
or similar, during installation time the path can be replaced with the action install path of the dependency file?What's would be the recommended way to achieve this?
Beta Was this translation helpful? Give feedback.
All reactions