【问题标题】:how to edit the configuration file of boost in slave using buildbot ShellCommand?如何使用buildbot ShellCommand在slave中编辑boost的配置文件?
【发布时间】:2013-07-01 23:01:29
【问题描述】:
所以我正在尝试在远程从站 (mac) 中构建和测试 boost。我想编辑 tools/build/v2/user-config.jam 文件,以便我可以使用 toolset=clang。
如何添加
//in user-config.jam
// toolset will use clang
using clang
: ...etc
在 user-config.jam 文件中?
【问题讨论】:
标签:
boost
compilation
cross-compiling
buildbot
【解决方案1】:
原来 unix 有一个不错的小命令,叫做
echo
所以我能做的就是使用这个命令来编辑那个文件。
ShellCommand(
name = "append config instruction"
command=['echo','I am adding this configuration cause it was missing','>','~/user-config.jam']
)
此命令将在配置文件中添加该行。
如果你想让它看起来像
“我正在添加此配置,因为它丢失了”我的意思是添加“”然后
echo "\"xyz\"" > text.txt