-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add missing copyright headers to c++ files
- Loading branch information
Showing
154 changed files
with
2,059 additions
and
216 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
#!/bin/bash | ||
# licensecheck -r src | ||
|
||
for i in $(<files); do | ||
author= | ||
authordate= | ||
eval $(git log --reverse --pretty="export author='%an' authordate=\"\$(date --date='%ai' +'%%B %Y')\"" $i | head -1) | ||
basename=$(basename $i) | ||
authoryear=${authordate#* } | ||
case $author in | ||
wonder|"Martin Dobias") | ||
authorname="Martin Dobias" | ||
authoremail="wonder.sk at gmail.com" | ||
;; | ||
|
||
"Marco Hugentobler"|mhugent) | ||
authorname="Marco Hugentobler" | ||
authoremail="marco dot hugentobler at sourcepole dot ch" | ||
;; | ||
|
||
"Pirmin Kalberer") | ||
authorname="Pirmin Kalberer" | ||
authoremail="pka at sourcepole dot ch" | ||
;; | ||
|
||
rblazek) | ||
authorname="Radim Blazek" | ||
authoremail="radim dot blazek at gmail dot com" | ||
;; | ||
|
||
timlinux) | ||
authorname="Tim Sutton" | ||
authoremail="tim dot linfiniti at com" | ||
;; | ||
|
||
*) | ||
echo "Author $author not found." | ||
exit 1 | ||
;; | ||
esac | ||
|
||
src=$i | ||
if [ -f "$i.nocopyright" ]; then | ||
src=$i.nocopyright | ||
fi | ||
|
||
cat - $src >/tmp/new <<EOF | ||
/*************************************************************************** | ||
$basename | ||
--------------------- | ||
begin : $authordate | ||
copyright : (C) $authoryear by $authorname | ||
email : $authoremail | ||
*************************************************************************** | ||
* * | ||
* This program is free software; you can redistribute it and/or modify * | ||
* it under the terms of the GNU General Public License as published by * | ||
* the Free Software Foundation; either version 2 of the License, or * | ||
* (at your option) any later version. * | ||
* * | ||
***************************************************************************/ | ||
EOF | ||
[ -f $i.nocopyright ] || mv $i $i.nocopyright | ||
cp /tmp/new $i | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,17 @@ | ||
/*************************************************************************** | ||
HalfEdge.cc | ||
--------------------- | ||
begin : September 2009 | ||
copyright : (C) 2009 by Marco Hugentobler | ||
email : marco dot hugentobler at sourcepole dot ch | ||
*************************************************************************** | ||
* * | ||
* This program is free software; you can redistribute it and/or modify * | ||
* it under the terms of the GNU General Public License as published by * | ||
* the Free Software Foundation; either version 2 of the License, or * | ||
* (at your option) any later version. * | ||
* * | ||
***************************************************************************/ | ||
#include "HalfEdge.h" | ||
|
||
//empty file, all methods are inline |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,17 @@ | ||
/*************************************************************************** | ||
TriangleInterpolator.cc | ||
--------------------- | ||
begin : September 2009 | ||
copyright : (C) 2009 by Marco Hugentobler | ||
email : marco dot hugentobler at sourcepole dot ch | ||
*************************************************************************** | ||
* * | ||
* This program is free software; you can redistribute it and/or modify * | ||
* it under the terms of the GNU General Public License as published by * | ||
* the Free Software Foundation; either version 2 of the License, or * | ||
* (at your option) any later version. * | ||
* * | ||
***************************************************************************/ | ||
#include "TriangleInterpolator.h" | ||
|
||
//empty file, all methods are inline |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,17 @@ | ||
/*************************************************************************** | ||
Triangulation.cc | ||
--------------------- | ||
begin : September 2009 | ||
copyright : (C) 2009 by Marco Hugentobler | ||
email : marco dot hugentobler at sourcepole dot ch | ||
*************************************************************************** | ||
* * | ||
* This program is free software; you can redistribute it and/or modify * | ||
* it under the terms of the GNU General Public License as published by * | ||
* the Free Software Foundation; either version 2 of the License, or * | ||
* (at your option) any later version. * | ||
* * | ||
***************************************************************************/ | ||
#include "Triangulation.h" | ||
|
||
//empty file (abstract class) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.