可以从“配置”中获取进度吗?和自动工具生成的“Makefile”?

发布于 2024-10-26 00:29:49 字数 117 浏览 4 评论 0原文

我正在同时构建大量项目,在构建它们的同时,我想在同一台机器上做其他事情,同时能够监控进度。

有没有办法从 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

慢慢从新开始 2024-11-02 00:29:49

简短的回答可能是“不”。但是,这取决于您想要什么样的监控。如果您只想在每个步骤完成时收到警报,您可以轻松地运行:

$ configure && alert-me && make && alert-me

其中alert-me 是向您发送警报的脚本。举一个具体的例子,如果您使用 gnu-screen,您可以为一个窗口设置监视,然后运行

$ configure > config.output && echo done

配置完成后,回显将在所有其他窗口上触发警报。

如果您要对每个包多次执行此操作,则可以记录配置运行的输出行数,并通过比较输出行来获取当前运行的百分比进度报告。 (这似乎很麻烦。)

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:

$ configure && alert-me && make && alert-me

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

$ configure > config.output && echo done

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.)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文