Package replaces comment comment in Xcode

I’ve been working on an iOS project for some time, creating hundreds of source files, and now that it’s well done, I understand that it’s sad: I edit the copyright file template before starting work, and all my files have this chrome format :

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

And this is not cool! I would like to replace it with something more similar:

 /* 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. */ 

Anyway. Maybe I could write a script that searches all my files and replaces the first lines of "//" with a better comment, but I'm sure there is a tool that does this perfectly.

Except: I cannot find this tool anywhere.

Does anyone know about such a tool? (Or maybe I'm a fool?)

+6
source share
1 answer

I ended up using a script that I found here: http://gergap.wordpress.com/2009/06/03/howto-recursively-replace-file-headers-of-source-files/

I do exactly the work that I wanted to do, and saved me the burden of myself.

+3
source

All Articles