LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1033|回复: 3

ebuild文件是bash脚本

[复制链接]
发表于 2008-4-6 23:55:34 | 显示全部楼层 |阅读模式
不要再误以为是python了
谢谢

看 /usr/lib/portage/pym/portage.py 中的doebuild函数
Wrapper function that invokes specific ebuild phases through the spawning of ebuild.sh

再看看ebuild.sh /usr/lib/portage/bin/ebuild.sh
发表于 2008-4-7 01:18:53 | 显示全部楼层
应该说是 portage 是用 python 来写的,ebuild 文件是用 bash 来调用 portage 的功能,
是不是这样呢?请教。
回复 支持 反对

使用道具 举报

发表于 2008-4-7 06:46:52 | 显示全部楼层
感觉反过来,是 portage 通过 ebuild 调用 bash。~~
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-4-7 08:51:19 | 显示全部楼层
看 /usr/lib/portage/pym/portage.py 中的doebuild函数
Wrapper function that invokes specific ebuild phases through the spawning of ebuild.sh

再看看ebuild.sh /usr/lib/portage/bin/ebuild.sh
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表