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
www.cLIeNUX.com
Quoted 3 lines · Rick Hohensee
.......................................................................
## 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
Quoted 8 lines · Russell King
Quoted 3 lines · Rick Hohensee
.......................................................................
## 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
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
Quoted 20 lines · Russell King
Quoted 3 lines · Rick Hohensee
.......................................................................
## 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/
Signature · 6 lines
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
Quoted 7 lines · Jeff Garzik
Quoted 5 lines · Russell King
Quoted 3 lines · Rick Hohensee
.......................................................................
## drop copyright notices to the bottoms of C files in current dir and
# subs.
Quoted 5 lines
Quoted 3 lines
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/neteither.
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]
Quoted 12 lines · Richard Gooch
Quoted 11 lines · Jeff Garzik
Quoted 8 lines · Russell King
Quoted 3 lines · Rick Hohensee
.......................................................................
## 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.
Quoted 7 lines
Quoted 1 line
Ditto. Don't touch
drivers/neteither.Sames goes for
arch/i386/kernel/mtrr.cand 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
In article <[email protected]>,
Quoted 3 lines · Rick Hohensee
.......................................................................
## drop copyright notices to the bottoms of C files in current dir and
# subs.
Why would anyone want to do this?
Wichert.
Signature · 4 lines
________________________________________________________________ / 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 |
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.
Quoted 21 lines · Rick Hohensee
.......................................................................
## 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
........................................................................
Signature · 8 lines
=====================================================================
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]
=====================================================================Reason (was: Re: dropcopyright script)
In reply to Rick HohenseeIn 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
Quoted 43 lines · Mohammad A. Haque
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.
Quoted 21 lines · Rick Hohensee
.......................................................................
## 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
........................................................................Signature · 13 lines
===================================================================== 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/
Re: Reason (was: Re: dropcopyright script)
In reply to Rick HohenseeQuoted 3 lines · Mordechai Ovits
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...
Signature · 3 lines
-- 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
Re: Reason (was: Re: dropcopyright script)
In reply to Rick HohenseeQuoted 8 lines · Yoann Vandoorselaere
Quoted 3 lines · Mordechai Ovits
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
Quoted 6 lines
Signature · 3 lines
-- 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
Re: Reason (was: Re: dropcopyright script)
In reply to Mordechai OvitsHeh
How big do you have your icons set that you can actually read stuff in it?
Quoted 6 lines · Mordechai Ovits
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
Signature · 8 lines
=====================================================================
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]
=====================================================================Re: Reason (was: Re: dropcopyright script)
In reply to Mordechai OvitsQuoted 4 lines · Mohammad A. Haque
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
Quoted 26 lines · Mordechai Ovits
Quoted 7 lines
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
Signature · 14 lines
===================================================================== 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/
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Wichert" == Wichert Akkerman <[email protected]> writes:
Wichert> In article <[email protected]>, Rick
Quoted 3 lines · Wichert> Hohensee <[email protected]> wrote:
Quoted 3 lines
.......................................................................
## 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
Re: Reason (was: Re: dropcopyright script)
In reply to Mordechai OvitsQuoted 7 lines · Mohammad A. Haque
How big do you have your icons set that you can actually read stuff in it?
Quoted 3 lines · Mordechai Ovits
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
Re: Reason (was: Re: dropcopyright script)
In reply to Mordechai OvitsQuoted 10 lines · Gregory Maxwell
Quoted 7 lines · Mohammad A. Haque
How big do you have your icons set that you can actually read stuff in it?
Quoted 3 lines · Mordechai Ovits
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
Quoted 6 lines
-
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/
Re: Reason (was: Re: dropcopyright script)
In reply to Rick HohenseeQuoted 9 lines · Mordechai Ovits
Quoted 6 lines
Quoted 3 lines
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
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.
Signature · 5 lines
Brett G. Person 415-358-2656 [email protected] Penguin Computing - The World's Most Reliable Linux Systems