2001-02-14 06:46:40

by Rick Hohensee

[permalink] [raw]
Subject: dropcopyright script

.......................................................................
## 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
http://www.cLIeNUX.com


2001-02-14 07:55:42

by Russell King

[permalink] [raw]
Subject: Re: dropcopyright script

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 ([email protected]) The developer of ARM Linux
http://www.arm.linux.org.uk/personal/aboutme.html

2001-02-14 08:00:13

by Jeff Garzik

[permalink] [raw]
Subject: Re: dropcopyright script

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




2001-02-14 08:10:13

by Matthew Dharm

[permalink] [raw]
Subject: Re: dropcopyright script

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 ([email protected]) 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 [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/

--
Matthew Dharm Home: [email protected]
Maintainer, Linux USB Mass Storage Driver

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


Attachments:
(No filename) (1.33 kB)
(No filename) (232.00 B)
Download all attachments

2001-02-14 12:32:48

by Jeff Garzik

[permalink] [raw]
Subject: Re: dropcopyright script

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




2001-02-14 12:31:38

by Richard Gooch

[permalink] [raw]
Subject: Re: dropcopyright script

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: [email protected]
Current: [email protected]

2001-02-14 12:35:08

by Wichert Akkerman

[permalink] [raw]
Subject: Re: dropcopyright script

In article <[email protected]>,
Rick Hohensee <[email protected]> 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 \
| [email protected] http://www.liacs.nl/~wichert/ |
| 1024D/2FA3BC2D 576E 100B 518D 2F16 36B0 2805 3CB8 9250 2FA3 BC2D |

2001-02-14 13:24:25

by Mohammad A. Haque

[permalink] [raw]
Subject: Re: dropcopyright script

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/
[email protected]

"Alcohol and calculus don't mix. Project Lead
Don't drink and derive." --Unknown http://wm.themes.org/
[email protected]
=====================================================================

2001-02-14 14:33:38

by Mordechai Ovits

[permalink] [raw]
Subject: Reason (was: Re: dropcopyright script)

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/
> [email protected]
>
> "Alcohol and calculus don't mix. Project Lead
> Don't drink and derive." --Unknown http://wm.themes.org/
> [email protected]
> =====================================================================
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>

2001-02-14 14:42:41

by Yoann Vandoorselaere

[permalink] [raw]
Subject: Re: Reason (was: Re: dropcopyright script)

Mordechai Ovits <[email protected]> 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

2001-02-14 14:44:01

by Mordechai Ovits

[permalink] [raw]
Subject: Re: Reason (was: Re: dropcopyright script)

On Wed, Feb 14, 2001 at 03:34:56PM +0100, Yoann Vandoorselaere wrote:
> Mordechai Ovits <[email protected]> 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
>

2001-02-14 15:00:51

by Mohammad A. Haque

[permalink] [raw]
Subject: Re: Reason (was: Re: dropcopyright script)

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/
[email protected]

"Alcohol and calculus don't mix. Project Lead
Don't drink and derive." --Unknown http://wm.themes.org/
[email protected]
=====================================================================

2001-02-14 15:03:21

by Mordechai Ovits

[permalink] [raw]
Subject: Re: Reason (was: Re: dropcopyright script)

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/
> [email protected]
>
> "Alcohol and calculus don't mix. Project Lead
> Don't drink and derive." --Unknown http://wm.themes.org/
> [email protected]
> =====================================================================
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>

2001-02-14 15:45:10

by Jes Sorensen

[permalink] [raw]
Subject: Re: dropcopyright script

>>>>> "Wichert" == Wichert Akkerman <[email protected]> writes:

Wichert> In article <[email protected]>, Rick
Wichert> Hohensee <[email protected]> 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

2001-02-14 17:53:25

by Gregory Maxwell

[permalink] [raw]
Subject: Re: Reason (was: Re: dropcopyright script)

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

2001-02-14 18:09:28

by Mordechai Ovits

[permalink] [raw]
Subject: Re: Reason (was: Re: dropcopyright script)

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 [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>

2001-02-14 18:37:08

by Jamie Lokier

[permalink] [raw]
Subject: Re: Reason (was: Re: dropcopyright script)

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

2001-02-14 19:38:07

by Brett Person

[permalink] [raw]
Subject: Re: dropcopyright script

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
[email protected]

Penguin Computing - The World's Most Reliable Linux Systems