public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* dropcopyright script
@ 2001-02-14  6:47 Rick Hohensee
  2001-02-14  7:55 ` Russell King
                   ` (3 more replies)
  0 siblings, 4 replies; 18+ messages in thread
From: Rick Hohensee @ 2001-02-14  6:47 UTC (permalink / raw)
  To: linux-kernel

.......................................................................
## drop copyright notices to the bottoms of C files in current dir and
#     subs. 
# /* 
#  CopYriGHt Guess Who 		2001		All reserves righted. 
# */

grep -ilr "copyright" . > tempdropcopyrights

for f in `cat tempdropcopyrights`
do
ed $f <<HEREDOC
/[Cc][oO][pP][yY][rR][iI]/
?\/\*?
.,/\*\//m$
wq
HEREDOC
done
........................................................................

Rick Hohensee
www.cLIeNUX.com			

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: dropcopyright script
  2001-02-14  6:47 dropcopyright script Rick Hohensee
@ 2001-02-14  7:55 ` Russell King
  2001-02-14  7:59   ` Jeff Garzik
  2001-02-14  8:09   ` Matthew Dharm
  2001-02-14 12:34 ` Wichert Akkerman
                   ` (2 subsequent siblings)
  3 siblings, 2 replies; 18+ messages in thread
From: Russell King @ 2001-02-14  7:55 UTC (permalink / raw)
  To: Rick Hohensee; +Cc: linux-kernel

Rick Hohensee writes:
> .......................................................................
> ## drop copyright notices to the bottoms of C files in current dir and
> #     subs. 

Please don't run this on any files maintained by myself.  I want the
copyright notices to be prominently displayed at the top of the file
so it can't be missed.

Thanks.

--
Russell King (rmk@arm.linux.org.uk)                The developer of ARM Linux
             http://www.arm.linux.org.uk/personal/aboutme.html


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: dropcopyright script
  2001-02-14  7:55 ` Russell King
@ 2001-02-14  7:59   ` Jeff Garzik
  2001-02-14 12:31     ` Richard Gooch
  2001-02-14  8:09   ` Matthew Dharm
  1 sibling, 1 reply; 18+ messages in thread
From: Jeff Garzik @ 2001-02-14  7:59 UTC (permalink / raw)
  To: Russell King; +Cc: Rick Hohensee, linux-kernel

On Wed, 14 Feb 2001, Russell King wrote:

> Rick Hohensee writes:
> > .......................................................................
> > ## drop copyright notices to the bottoms of C files in current dir and
> > #     subs. 
> 
> Please don't run this on any files maintained by myself.  I want the
> copyright notices to be prominently displayed at the top of the file
> so it can't be missed.

Ditto.  Don't touch drivers/net either.

	Jeff





^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: dropcopyright script
  2001-02-14  7:55 ` Russell King
  2001-02-14  7:59   ` Jeff Garzik
@ 2001-02-14  8:09   ` Matthew Dharm
  1 sibling, 0 replies; 18+ messages in thread
From: Matthew Dharm @ 2001-02-14  8:09 UTC (permalink / raw)
  To: Russell King; +Cc: Rick Hohensee, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1399 bytes --]

Same here.  While it's a nice script and all, I personally want the
copyright and associated contact information in a clear and easy-to-find
place.

In other words, if you get Linus to patch the kernel to do this, then I'm
just going to try to get him to patch it back.

Matt

On Wed, Feb 14, 2001 at 07:55:03AM +0000, Russell King wrote:
> Rick Hohensee writes:
> > .......................................................................
> > ## drop copyright notices to the bottoms of C files in current dir and
> > #     subs. 
> 
> Please don't run this on any files maintained by myself.  I want the
> copyright notices to be prominently displayed at the top of the file
> so it can't be missed.
> 
> Thanks.
> 
> --
> Russell King (rmk@arm.linux.org.uk)                The developer of ARM Linux
>              http://www.arm.linux.org.uk/personal/aboutme.html
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/

-- 
Matthew Dharm                              Home: mdharm-usb@one-eyed-alien.net 
Maintainer, Linux USB Mass Storage Driver

What, are you one of those Microsoft-bashing Linux freaks?
					-- Customer to Greg
User Friendly, 2/10/1999

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: dropcopyright script
  2001-02-14  7:59   ` Jeff Garzik
@ 2001-02-14 12:31     ` Richard Gooch
  2001-02-14 12:32       ` Jeff Garzik
  0 siblings, 1 reply; 18+ messages in thread
From: Richard Gooch @ 2001-02-14 12:31 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: Russell King, Rick Hohensee, linux-kernel

Jeff Garzik writes:
> On Wed, 14 Feb 2001, Russell King wrote:
> 
> > Rick Hohensee writes:
> > > .......................................................................
> > > ## drop copyright notices to the bottoms of C files in current dir and
> > > #     subs. 
> > 
> > Please don't run this on any files maintained by myself.  I want the
> > copyright notices to be prominently displayed at the top of the file
> > so it can't be missed.
> 
> Ditto.  Don't touch drivers/net either.

Sames goes for arch/i386/kernel/mtrr.c and fs/devfs.

In fact, assume the default is that people don't want this done. Get
permission from individual maintainers. If they don't respond, don't
touch their files. Don't ask twice.

				Regards,

					Richard....
Permanent: rgooch@atnf.csiro.au
Current:   rgooch@ras.ucalgary.ca

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: dropcopyright script
  2001-02-14 12:31     ` Richard Gooch
@ 2001-02-14 12:32       ` Jeff Garzik
  0 siblings, 0 replies; 18+ messages in thread
From: Jeff Garzik @ 2001-02-14 12:32 UTC (permalink / raw)
  To: Richard Gooch; +Cc: Russell King, Rick Hohensee, linux-kernel

On Wed, 14 Feb 2001, Richard Gooch wrote:

> Jeff Garzik writes:
> > On Wed, 14 Feb 2001, Russell King wrote:
> > 
> > > Rick Hohensee writes:
> > > > .......................................................................
> > > > ## drop copyright notices to the bottoms of C files in current dir and
> > > > #     subs. 
> > > 
> > > Please don't run this on any files maintained by myself.  I want the
> > > copyright notices to be prominently displayed at the top of the file
> > > so it can't be missed.
> > 
> > Ditto.  Don't touch drivers/net either.
> 
> Sames goes for arch/i386/kernel/mtrr.c and fs/devfs.
> 
> In fact, assume the default is that people don't want this done. Get
> permission from individual maintainers. If they don't respond, don't
> touch their files. Don't ask twice.

FWIW Rick replied to me privately, saying he was only running the script
on his local files, not sending patches to Linus...

	Jeff





^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: dropcopyright script
  2001-02-14  6:47 dropcopyright script Rick Hohensee
  2001-02-14  7:55 ` Russell King
@ 2001-02-14 12:34 ` Wichert Akkerman
  2001-02-14 15:44   ` Jes Sorensen
  2001-02-14 13:23 ` Mohammad A. Haque
  2001-02-14 19:37 ` dropcopyright script Brett Person
  3 siblings, 1 reply; 18+ messages in thread
From: Wichert Akkerman @ 2001-02-14 12:34 UTC (permalink / raw)
  To: linux-kernel

In article <200102140647.BAA24740@smarty.smart.net>,
Rick Hohensee  <humbubba@smarty.smart.net> wrote:
>.......................................................................
>## drop copyright notices to the bottoms of C files in current dir and
>#     subs. 

Why would anyone want to do this?

Wichert.
-- 
   ________________________________________________________________
 / Generally uninteresting signature - ignore at your convenience  \
| wichert@cistron.nl                  http://www.liacs.nl/~wichert/ |
| 1024D/2FA3BC2D 576E 100B 518D 2F16 36B0  2805 3CB8 9250 2FA3 BC2D |


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: dropcopyright script
  2001-02-14  6:47 dropcopyright script Rick Hohensee
  2001-02-14  7:55 ` Russell King
  2001-02-14 12:34 ` Wichert Akkerman
@ 2001-02-14 13:23 ` Mohammad A. Haque
  2001-02-14 14:33   ` Reason (was: Re: dropcopyright script) Mordechai Ovits
  2001-02-14 19:37 ` dropcopyright script Brett Person
  3 siblings, 1 reply; 18+ messages in thread
From: Mohammad A. Haque @ 2001-02-14 13:23 UTC (permalink / raw)
  To: Rick Hohensee; +Cc: linux-kernel

What prompted this? People are going to want copyright notices in a
prominent place. Namely at the beginning of the code along with whatever
instructions and cruft.

Rick Hohensee wrote:
> 
> .......................................................................
> ## drop copyright notices to the bottoms of C files in current dir and
> #     subs.
> # /*
> #  CopYriGHt Guess Who          2001            All reserves righted.
> # */
> 
> grep -ilr "copyright" . > tempdropcopyrights
> 
> for f in `cat tempdropcopyrights`
> do
> ed $f <<HEREDOC
> /[Cc][oO][pP][yY][rR][iI]/
> ?\/\*?
> .,/\*\//m$
> wq
> HEREDOC
> done
> ........................................................................
> 

-- 

=====================================================================
Mohammad A. Haque                              http://www.haque.net/ 
                                               mhaque@haque.net

  "Alcohol and calculus don't mix.             Project Lead
   Don't drink and derive." --Unknown          http://wm.themes.org/
                                               batmanppc@themes.org
=====================================================================

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Reason (was: Re: dropcopyright script)
  2001-02-14 13:23 ` Mohammad A. Haque
@ 2001-02-14 14:33   ` Mordechai Ovits
  2001-02-14 14:34     ` Yoann Vandoorselaere
  2001-02-14 15:00     ` Mohammad A. Haque
  0 siblings, 2 replies; 18+ messages in thread
From: Mordechai Ovits @ 2001-02-14 14:33 UTC (permalink / raw)
  To: Mohammad A. Haque; +Cc: Rick Hohensee, linux-kernel

In newer file managers, the icon of a C file is a tiny image of the first
few lines of text.  If all files startt with a copyright, it's not much
good.  So running this on a local, personal, tree can be a good thing.

Mordy

On Wed, Feb 14, 2001 at 08:23:57AM -0500, Mohammad A. Haque wrote:
> What prompted this? People are going to want copyright notices in a
> prominent place. Namely at the beginning of the code along with whatever
> instructions and cruft.
> 
> Rick Hohensee wrote:
> > 
> > .......................................................................
> > ## drop copyright notices to the bottoms of C files in current dir and
> > #     subs.
> > # /*
> > #  CopYriGHt Guess Who          2001            All reserves righted.
> > # */
> > 
> > grep -ilr "copyright" . > tempdropcopyrights
> > 
> > for f in `cat tempdropcopyrights`
> > do
> > ed $f <<HEREDOC
> > /[Cc][oO][pP][yY][rR][iI]/
> > ?\/\*?
> > .,/\*\//m$
> > wq
> > HEREDOC
> > done
> > ........................................................................
> > 
> 
> -- 
> 
> =====================================================================
> Mohammad A. Haque                              http://www.haque.net/ 
>                                                mhaque@haque.net
> 
>   "Alcohol and calculus don't mix.             Project Lead
>    Don't drink and derive." --Unknown          http://wm.themes.org/
>                                                batmanppc@themes.org
> =====================================================================
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
> 

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Reason (was: Re: dropcopyright script)
  2001-02-14 14:33   ` Reason (was: Re: dropcopyright script) Mordechai Ovits
@ 2001-02-14 14:34     ` Yoann Vandoorselaere
  2001-02-14 14:44       ` Mordechai Ovits
  2001-02-14 15:00     ` Mohammad A. Haque
  1 sibling, 1 reply; 18+ messages in thread
From: Yoann Vandoorselaere @ 2001-02-14 14:34 UTC (permalink / raw)
  To: Mordechai Ovits; +Cc: Mohammad A. Haque, Rick Hohensee, linux-kernel

Mordechai Ovits <movits@ovits.net> writes:

> In newer file managers, the icon of a C file is a tiny image of the first
> few lines of text.  If all files startt with a copyright, it's not much
> good.  So running this on a local, personal, tree can be a good thing.

Modifying the file manager to take care of that would
be a proper solution I think... 

-- 

		-- Yoann http://www.mandrakesoft.com/~yoann/
C makes it easy to shoot yourself in the foot. C++ makes it harder,
but when you do, it blows away your whole leg. - Bjarne Stroustrup

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Reason (was: Re: dropcopyright script)
  2001-02-14 14:34     ` Yoann Vandoorselaere
@ 2001-02-14 14:44       ` Mordechai Ovits
  2001-02-14 18:36         ` Jamie Lokier
  0 siblings, 1 reply; 18+ messages in thread
From: Mordechai Ovits @ 2001-02-14 14:44 UTC (permalink / raw)
  To: Yoann Vandoorselaere; +Cc: Mohammad A. Haque, Rick Hohensee, linux-kernel

On Wed, Feb 14, 2001 at 03:34:56PM +0100, Yoann Vandoorselaere wrote:
> Mordechai Ovits <movits@ovits.net> writes:
> 
> > In newer file managers, the icon of a C file is a tiny image of the first
> > few lines of text.  If all files startt with a copyright, it's not much
> > good.  So running this on a local, personal, tree can be a good thing.
> 
> Modifying the file manager to take care of that would
> be a proper solution I think... 

hard to imagine that working for any general solution.  Better to let people
mess with their own files using a script like the one posted.

Mordy
 
> -- 
> 
> 		-- Yoann http://www.mandrakesoft.com/~yoann/
> C makes it easy to shoot yourself in the foot. C++ makes it harder,
> but when you do, it blows away your whole leg. - Bjarne Stroustrup
> 

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Reason (was: Re: dropcopyright script)
  2001-02-14 14:33   ` Reason (was: Re: dropcopyright script) Mordechai Ovits
  2001-02-14 14:34     ` Yoann Vandoorselaere
@ 2001-02-14 15:00     ` Mohammad A. Haque
  2001-02-14 15:03       ` Mordechai Ovits
  2001-02-14 17:52       ` Gregory Maxwell
  1 sibling, 2 replies; 18+ messages in thread
From: Mohammad A. Haque @ 2001-02-14 15:00 UTC (permalink / raw)
  To: Mordechai Ovits; +Cc: Rick Hohensee, linux-kernel

Heh

How big do you have your icons set that you can actually read stuff in
it?

On Wed, 14 Feb 2001, Mordechai Ovits wrote:

> In newer file managers, the icon of a C file is a tiny image of the first
> few lines of text.  If all files startt with a copyright, it's not much
> good.  So running this on a local, personal, tree can be a good thing.
>
> Mordy
>

-- 

=====================================================================
Mohammad A. Haque                              http://www.haque.net/
                                               mhaque@haque.net

  "Alcohol and calculus don't mix.             Project Lead
   Don't drink and derive." --Unknown          http://wm.themes.org/
                                               batmanppc@themes.org
=====================================================================


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Reason (was: Re: dropcopyright script)
  2001-02-14 15:00     ` Mohammad A. Haque
@ 2001-02-14 15:03       ` Mordechai Ovits
  2001-02-14 17:52       ` Gregory Maxwell
  1 sibling, 0 replies; 18+ messages in thread
From: Mordechai Ovits @ 2001-02-14 15:03 UTC (permalink / raw)
  To: Mohammad A. Haque; +Cc: Rick Hohensee, linux-kernel

On Wed, Feb 14, 2001 at 10:00:25AM -0500, Mohammad A. Haque wrote:
> Heh
> 
> How big do you have your icons set that you can actually read stuff in
> it?

They're quite large, and it is surprisingly effective.  KDE2 and nautilus
both do this.

Mordy
 
> On Wed, 14 Feb 2001, Mordechai Ovits wrote:
> 
> > In newer file managers, the icon of a C file is a tiny image of the first
> > few lines of text.  If all files startt with a copyright, it's not much
> > good.  So running this on a local, personal, tree can be a good thing.
> >
> > Mordy
> >
> 
> -- 
> 
> =====================================================================
> Mohammad A. Haque                              http://www.haque.net/
>                                                mhaque@haque.net
> 
>   "Alcohol and calculus don't mix.             Project Lead
>    Don't drink and derive." --Unknown          http://wm.themes.org/
>                                                batmanppc@themes.org
> =====================================================================
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
> 

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: dropcopyright script
  2001-02-14 12:34 ` Wichert Akkerman
@ 2001-02-14 15:44   ` Jes Sorensen
  0 siblings, 0 replies; 18+ messages in thread
From: Jes Sorensen @ 2001-02-14 15:44 UTC (permalink / raw)
  To: Wichert Akkerman; +Cc: linux-kernel

>>>>> "Wichert" == Wichert Akkerman <wichert@cistron.nl> writes:

Wichert> In article <200102140647.BAA24740@smarty.smart.net>, Rick
Wichert> Hohensee <humbubba@smarty.smart.net> wrote:
>> .......................................................................
>> ## drop copyright notices to the bottoms of C files in current dir
>> and # subs.

Wichert> Why would anyone want to do this?

Probably because it's a completely stupid idea that serves no purpose
whatsoever.

Jes

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Reason (was: Re: dropcopyright script)
  2001-02-14 15:00     ` Mohammad A. Haque
  2001-02-14 15:03       ` Mordechai Ovits
@ 2001-02-14 17:52       ` Gregory Maxwell
  2001-02-14 18:09         ` Mordechai Ovits
  1 sibling, 1 reply; 18+ messages in thread
From: Gregory Maxwell @ 2001-02-14 17:52 UTC (permalink / raw)
  To: Mohammad A. Haque; +Cc: Mordechai Ovits, Rick Hohensee, linux-kernel

On Wed, Feb 14, 2001 at 10:00:25AM -0500, Mohammad A. Haque wrote:
> How big do you have your icons set that you can actually read stuff in
> it?
> On Wed, 14 Feb 2001, Mordechai Ovits wrote:
> 
> > In newer file managers, the icon of a C file is a tiny image of the first
> > few lines of text.  If all files startt with a copyright, it's not much
> > good.  So running this on a local, personal, tree can be a good thing.

It would probably be more useful to make a little picture of a tree of the

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Reason (was: Re: dropcopyright script)
  2001-02-14 17:52       ` Gregory Maxwell
@ 2001-02-14 18:09         ` Mordechai Ovits
  0 siblings, 0 replies; 18+ messages in thread
From: Mordechai Ovits @ 2001-02-14 18:09 UTC (permalink / raw)
  To: Gregory Maxwell; +Cc: Mohammad A. Haque, Rick Hohensee, linux-kernel

On Wed, Feb 14, 2001 at 12:52:36PM -0500, Gregory Maxwell wrote:
> On Wed, Feb 14, 2001 at 10:00:25AM -0500, Mohammad A. Haque wrote:
> > How big do you have your icons set that you can actually read stuff in
> > it?
> > On Wed, 14 Feb 2001, Mordechai Ovits wrote:
> > 
> > > In newer file managers, the icon of a C file is a tiny image of the first
> > > few lines of text.  If all files startt with a copyright, it's not much
> > > good.  So running this on a local, personal, tree can be a good thing.
> 
> It would probably be more useful to make a little picture of a tree of the

Huh?

Mordy

> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
> 

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Reason (was: Re: dropcopyright script)
  2001-02-14 14:44       ` Mordechai Ovits
@ 2001-02-14 18:36         ` Jamie Lokier
  0 siblings, 0 replies; 18+ messages in thread
From: Jamie Lokier @ 2001-02-14 18:36 UTC (permalink / raw)
  To: Mordechai Ovits
  Cc: Yoann Vandoorselaere, Mohammad A. Haque, Rick Hohensee,
	linux-kernel

Mordechai Ovits wrote:
> > > In newer file managers, the icon of a C file is a tiny image of the first
> > > few lines of text.  If all files startt with a copyright, it's not much
> > > good.  So running this on a local, personal, tree can be a good thing.
> > 
> > Modifying the file manager to take care of that would
> > be a proper solution I think... 
> 
> hard to imagine that working for any general solution.  Better to let people
> mess with their own files using a script like the one posted.

According to GNU standards <;-)> all files should begin with a short
description of the contents of the file, 1 or 2 lines long.  The
copyright notice comes next.  Surely that's enough to identify an icon?

-- Jamie

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: dropcopyright script
  2001-02-14  6:47 dropcopyright script Rick Hohensee
                   ` (2 preceding siblings ...)
  2001-02-14 13:23 ` Mohammad A. Haque
@ 2001-02-14 19:37 ` Brett Person
  3 siblings, 0 replies; 18+ messages in thread
From: Brett Person @ 2001-02-14 19:37 UTC (permalink / raw)
  To: Rick Hohensee; +Cc: linux-kernel

Please dont do this.  The copyright info at the top of the file is there
for a reason.  Not only does it give credit where credit is due, but it
gives vital contact info for reporting problems back to the
maintainer/authour.

-- 
Brett G. Person
415-358-2656
bperson@penguincomputing.com

Penguin Computing - The World's Most Reliable Linux Systems


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2001-02-14 19:38 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-02-14  6:47 dropcopyright script Rick Hohensee
2001-02-14  7:55 ` Russell King
2001-02-14  7:59   ` Jeff Garzik
2001-02-14 12:31     ` Richard Gooch
2001-02-14 12:32       ` Jeff Garzik
2001-02-14  8:09   ` Matthew Dharm
2001-02-14 12:34 ` Wichert Akkerman
2001-02-14 15:44   ` Jes Sorensen
2001-02-14 13:23 ` Mohammad A. Haque
2001-02-14 14:33   ` Reason (was: Re: dropcopyright script) Mordechai Ovits
2001-02-14 14:34     ` Yoann Vandoorselaere
2001-02-14 14:44       ` Mordechai Ovits
2001-02-14 18:36         ` Jamie Lokier
2001-02-14 15:00     ` Mohammad A. Haque
2001-02-14 15:03       ` Mordechai Ovits
2001-02-14 17:52       ` Gregory Maxwell
2001-02-14 18:09         ` Mordechai Ovits
2001-02-14 19:37 ` dropcopyright script Brett Person

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox