whyrusleeping / gx

A package management tool
MIT License
1.88k stars 110 forks source link

Converting examples/gx-sample to a proper gx-sh subtool #177

Open chriscool opened 6 years ago

chriscool commented 6 years ago

It would be interesting to have a subtool for shell scripts. It could be used for example for Sharness scripts.

It's difficult though to understand what should be done to convert the gx-sample script to a proper gx-sh subtool.

chriscool commented 6 years ago

@whyrusleeping provided the following information on the #gx IRC channel:

it depends on if there are any steps you need to perform there gx-go uses those to do the path rewriting the interesting ones to implement would be the 'test' hooks there are 'pre-test' 'test' and 'post-test' hooks you can add handlers for you'll probably also want to set the 'install-path' hook to return where you want the downloaded packages placed honestly, you probably don't even need a gx-sh subtool gx works without the subtool too (if you don't need any of the hooks implemented, that is)