zoukankan      html  css  js  c++  java
  • 批量替换程序的文件注释头

    批量替换程序的文件注释头

    Install: Just unpack the files into your home directory. It will create a

    directory ~/rh containing all files. Now edit the file ~/rf/header.template
    to fit your needs. That's it.

    Usage: ~/rh/replace_header.sh <file>
    This replaces only the header of the given file. That's how it works, but the
    power comes in combination with the find utility. See the following example
    how it works together with find.

    Example: Recursively change all header files
    $ cd ~/your/source/dir
    $ find . -name "*.h" # verify the output to check what is going to be changed.
    $ find . -name "*.h" -exec ~/rh/replace_header.sh {} ; # Now replace them all.

    ============

    在整理gobelieve IM SDK的过程中,需要批量修改源文件的版权注释信息, 然后,stackflow上找到的这个脚本

    1. 包解压到~/文件夹
    2. 修改rh文件夹里的templete文件
    3. 命令行切换到需要修改的工程目录
    4. $ find . -name "*.h" -exec ~/rh/replace_header.sh {} ;
    5. $ find . -name "*.m" -exec ~/rh/replace_header.sh {} ;
    6. $ find . -name "*.java" -exec ~/rh/replace_header.sh {} ;
    7. $ find . -name "*.mm" -exec ~/rh/replace_header.sh {} ;
    8. 不需要修改文件注释头的,用svn或者git做部分还原操作。

    ok!!!!

    ===================

    下载地址:http://download.csdn.net/detail/shengmaqianzi/8600717

  • 相关阅读:
    vue学习目录
    充分利用 SQL Server Reporting Services 图表
    MSCRM 用户登录日志
    Microsoft Dynamics CRM MVP
    在SSRS 里实现 SUMIF
    MSCRM 报表显示 rsprocessingaborted 错误
    电商CRM的痛点在哪里?
    MSCRM 2011/2013/2015 修改显示记录数
    MSCRM 2013/2015 Ribbon Editor
    Q:解决每天第一次打开MSCRM系统展示慢的问题
  • 原文地址:https://www.cnblogs.com/nuanshou/p/4432231.html
Copyright © 2011-2022 走看看