批量replaceXCode中的版权注释

我已经在iOS项目上工作了一段时间,创build了数百个源文件,现在这样做很好,我意识到一些令人伤心的事情:在开始工作之前编辑版权文件模板,我的所有文件都有这个蹩脚的格式:

// // MyClass.h // // Created by Redwarp on 3/25/13. // Copyright (c) 2013 Redwarp. All rights reserved. // 

这不是很酷! 我想用更类似的东西来代替它:

 /* This software is licensed under the Apache 2 license, quoted below. Copyright 2013 Redwarp <redwarp@gmail.com> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ 

无论如何。 我可以编写一个脚本,它search我的所有文件,并用更好的评论replace第一个“//”行,但是我确定有一个工具可以完美地完成这个工作。

除了:我无法在任何地方find该工具。

谁会知道这样的工具? (或者可能是我是个傻瓜?)

我结束了使用我在这里find的脚本: http : //gergap.wordpress.com/2009/06/03/howto-recursively-replace-file-headers-of-source-files/

我想做的工作是什么,并且免除了我自己做这件事的重担。