perl大幅文字提示例(从MTK脚本提取)
2015-10-10 09:24
615 查看
#!/usr/local/bin/perl
##usage: 本例程作用在于输出警告信息,MTK脚本中使用的方式
##author: sf.kaka
##mofifications:created 08122703
##all rights reserved by sf.kaka
sub usage {
warn << "__END_OF_USAGE";
Usage:
make ["customer"|"mt62xx"] "project" "action" ["modules"]
Description:
customer = mtk (Default customer)
= firefly17_demo (FIREFLY17_DEMO project)
= [mt6217|mt6219|mt6226|mt6227|mt6228|mt6229] (EVB only)
= ...
project = l1s (Layer 1 stand-alone)
= gsm (GSM only)
= gprs (GPRS only)
= umts (GPRS+UMTS)
= basic (Basic Framework)
action = new (codegen, resgen, clean, update) (default)
= update or u (scan, compile, link)
= remake or r (compile, link)
= clean or c (clean)
= resgen (resgen)
= c,u (clean then update)
= c,r (clean then remake)
= codegen (codegen)
= viewlog (open edit to view build log)
= emigen (emigen)
= emiclean (emiclean)
module(s) = modules' name (kal, l1, ...)
=> OPTIONAL when action is one of (clean c remake r update u c,r c,u)
Example:
make gsm new (MT6205B EVB new)
make gprs codegen (MT6218B EVB codegen)
make mt6219 gprs update (MT6219 EVB update)
make firefly17_demo gprs new
make milan_demo gprs c,u init custom
make mt6219 gprs r init custom drv
__END_OF_USAGE
exit 1;
}
&usage
##usage: 本例程作用在于输出警告信息,MTK脚本中使用的方式
##author: sf.kaka
##mofifications:created 08122703
##all rights reserved by sf.kaka
sub usage {
warn << "__END_OF_USAGE";
Usage:
make ["customer"|"mt62xx"] "project" "action" ["modules"]
Description:
customer = mtk (Default customer)
= firefly17_demo (FIREFLY17_DEMO project)
= [mt6217|mt6219|mt6226|mt6227|mt6228|mt6229] (EVB only)
= ...
project = l1s (Layer 1 stand-alone)
= gsm (GSM only)
= gprs (GPRS only)
= umts (GPRS+UMTS)
= basic (Basic Framework)
action = new (codegen, resgen, clean, update) (default)
= update or u (scan, compile, link)
= remake or r (compile, link)
= clean or c (clean)
= resgen (resgen)
= c,u (clean then update)
= c,r (clean then remake)
= codegen (codegen)
= viewlog (open edit to view build log)
= emigen (emigen)
= emiclean (emiclean)
module(s) = modules' name (kal, l1, ...)
=> OPTIONAL when action is one of (clean c remake r update u c,r c,u)
Example:
make gsm new (MT6205B EVB new)
make gprs codegen (MT6218B EVB codegen)
make mt6219 gprs update (MT6219 EVB update)
make firefly17_demo gprs new
make milan_demo gprs c,u init custom
make mt6219 gprs r init custom drv
__END_OF_USAGE
exit 1;
}
&usage
相关文章推荐
- 《End-to-End Internet Packet Dynamics》简介
- 用GPUImage做难一点点的效果
- WinForm应用程序退出的方法
- 常用正则表达式收集
- Win10 蓝屏
- 在QT的信号和槽中使用自定义类型
- 版本号的比较函数
- 使用boost::bind/std::bind进行封…
- SQLite批量插入Android代码示例
- SQLite批量插入IOS代码示例
- "《英雄联盟》支撑最高750万同时在…
- 程序员应该具备的能力
- 小工具:批量转换文件夹下的特定类…
- IOS如何在容器类(如NSMutableSet)…
- 遇到技术问题的时候,建议使用如下…
- 关于代码注释的认识更新
- npm发布注意事项
- 高效地反向逐行读取文件
- Java和C/C++进行DES/AES密文传输
- 使用std::map和std::list实现LRU(…