winston 发表于 2012-4-5 16:20:43

怎样过滤包含的部分头文件?

来自于Dave:
Q:有一项需求,需要把部分ACE的头文件复制给用户编译使用,因为完全复制,太大了。但手工操作太繁琐,用什么工具做?
A:脚本:

Linux下提取ace头文件的方法:
cd ace
mkdir ace_include
cp *.h ace_include/
cp *.inl ace_include/
grep "#pragma implementation" *.h|egrep -o \".*cpp|sed 's/\"//' | xargs cp -i {} ace_include/


dwh0403 发表于 2012-4-5 16:38:36

本帖最后由 dwh0403 于 2012-4-5 16:40 编辑

上面的那个有点问题,完整的如下:



cd ace
mkdir ace_include
cp *.h ace_include/
cp -R os_include/ ace_include/
cp *.inl ace_include/
grep "#pragma implementation" *.h|egrep -o \".*cpp|sed 's/\"//' | xargs -i cp {} ace_include/


页: [1]
查看完整版本: 怎样过滤包含的部分头文件?