AStyle之linux/windows脚本
来源:互联网 发布:双色球红球7个算法公式 编辑:程序博客网 时间:2024/06/04 00:48
资源下载:http://download.csdn.net/detail/v__king__/9814151
linux如何将AStyle集成到你的c工程
- 新建一个AStyle的目录
- 把AStyle.exe和test.sh脚本放到工程AStyle目录中,加入Makefile
shell脚本
#!/bin/bashfind ./ -name "*.c" | xargs AStyle -c --style=ansifind ./ -name "*.h" | xargs AStyle -c --style=ansi
DOS的脚本
rem 将当前目录和所有子目录的*.c,*.h文件格式化rem 注意历史原因dos不识别utf8编码的中文rem 编辑dos脚本需要保存为ansi编码,rem 可以用其他编辑器编辑,在复制到记事本中rem add by VkingMan@20170721@echo offfor /R "../" %%s in (,*.h) do AStyle.exe --style=ansi %%sset /p var=删除所有的备份文件*.orig?(Y/N):if %var% equ Y ( echo "rm all the *.orig" for /R "../" %%s in (*.orig) do del %%s)if %var% equ y ( echo "rm all the *.orig" for /R "../" %%s in (*.orig) do del %%s)pause
资源下载:http://download.csdn.net/detail/v__king__/9814151
阅读全文
0 0
- AStyle之linux/windows脚本
- astyle linux美化代码
- astyle
- astyle
- linux下astyle的使用
- windows db2备份至Linux备份服务器之脚本实现
- windows和linux分区脚本
- linux之bash脚本
- linux之ARP脚本
- Linux之shell脚本
- Linux和Windows脚本中的延时操作
- 自动备份脚本(Windows和Linux)
- windows下写好脚本需要在Linux运行
- linux之 简略脚本入门
- linux shell脚本之判断
- Linux 脚本之字符串截断
- linux 脚本 之 简化工作
- linux shell脚本之if
- KAFKA介绍(分布式架构)
- GDC项目组主要任务
- QT关于iCCP警告
- 干净卸载mac上的软件
- Mysql InnoDB 学习笔记
- AStyle之linux/windows脚本
- JS中日期格式转换
- NDK环境搭建和JNI示例详解
- iOS关于Button使用的一些总结
- Oracle 报错
- oracle expdp/impdp
- Maven介绍,包括作用、核心概念、用法、常用命令、扩展及配置
- sbc(二)高可用Eureka+声明式服务调用
- Python之文字转图片