Bootstrap mach completion scripts
Categories
(Firefox Build System :: Bootstrap Configuration, enhancement, P4)
Tracking
(Not tracked)
People
(Reporter: ahal, Unassigned)
References
Details
Bug 1519990 introduced new tab completion script generation, it can be used like ./mach mach-completion <shell> -f <path/to/put/file>.
It would be cool if we could automatically detect shell / environment and put the completion script in the correct spot. We could also set up a cron task to periodically re-generate it (as it will become out of date over time).
Not sure if this logic should belong in mozboot or mach core, but filing here for now.
Comment 1•8 months ago
|
||
It would be cool if we could automatically detect shell / environment and put the completion script in the correct spot. We could also set up a cron task to periodically re-generate it (as it will become out of date over time).
Seems like bootstrap is the right place for this. Since bootstrap would typically be run on a semi-regular basis, that would erase the need for periodic re-generation -- if the script gets out of date, just re-run bootstrap as you would to fix any other issue with your machine getting out-of-sync with the mach source.
| Reporter | ||
Comment 2•8 months ago
|
||
Yeah, I think it should hook into mach bootstrap no matter what. But mozboot could call into code that lives under mach. See also my vision for bootstrapping in bug 1526021.
Comment 3•8 months ago
|
||
Oh, yeah, I don't care about the exact directory it lives under :) Still, IMO the cron thing does not seem necessary.
| Reporter | ||
Comment 4•8 months ago
|
||
True, personally I avoid mach bootstrap since it does so much and takes so long.. so I'll personally keep it as a cron task. But agree mach bootstrap can just focus on installing the scripts and not worry about setting up cron.
Description
•