Copyright notice macro / for open source

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Copyright notice macro / for open source

Post by josh »

What programs can automatically insert copyright docblocks? Or do we have to do by hand ( if releasing opensource code )
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Re: Copyright notice macro / for open source

Post by Weirdan »

Can't your editor do that?
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Re: Copyright notice macro / for open source

Post by josh »

Umm it has regular expressions... What editors do do this and whats the feature called?
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: Copyright notice macro / for open source

Post by Benjamin »

I think you do that by editing the default template added to php files whenever you create one. I'm not sure if there is an editor that can add these to an existing codebase.
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Re: Copyright notice macro / for open source

Post by josh »

Gotchya, I'm half way done now anyways, thanks for the responses
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Re: Copyright notice macro / for open source

Post by alex.barylski »

I believe editors would call them comment stubs or templates. :)
User avatar
arjan.top
Forum Contributor
Posts: 305
Joined: Sun Oct 14, 2007 4:36 am
Location: Hoče, Slovenia

Re: Copyright notice macro / for open source

Post by arjan.top »

look at phing, it should have support for adding text to files
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Re: Copyright notice macro / for open source

Post by josh »

True, I need to learn more about phing then. I'm messin with docbook and all that too
Post Reply