可以从“配置”中获取进度吗?和自动工具生成的“Makefile”?
我正在同时构建大量项目,在构建它们的同时,我想在同一台机器上做其他事情,同时能够监控进度。
有没有办法从 autoconf 生成的配置脚本和 autotools 生成的 Makefile 中获取当前进度?
I'm building tons of projects at once, and while they're being built, I'd like to do other stuff on the same machine, while being able to monitor the progress.
Is there a way to fetch current progress from configure script as generated by autoconf, and from Makefile generated by autotools?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
简短的回答可能是“不”。但是,这取决于您想要什么样的监控。如果您只想在每个步骤完成时收到警报,您可以轻松地运行:
其中alert-me 是向您发送警报的脚本。举一个具体的例子,如果您使用 gnu-screen,您可以为一个窗口设置监视,然后运行
配置完成后,回显将在所有其他窗口上触发警报。
如果您要对每个包多次执行此操作,则可以记录配置运行的输出行数,并通过比较输出行来获取当前运行的百分比进度报告。 (这似乎很麻烦。)
The short answer is probably "no". But, it depends on what sort of monitoring you want. If you just want to be alerted when each step is finished, you can easily just run:
where alert-me is some script that sends you the alert. As a concrete example, if you are using gnu-screen, you could set up monitoring for a window, then run
When configure is done, the echo will trigger an alert on all the other windows.
If you will be doing this multiple times with each package, you could record the number of lines of output from a run of configure, and get a percentage progress report of the current run by comparing the lines of output. (That seems like a hassle.)