Skip to content

Commit ee2dd79

Browse files
committed
add missing copyright headers to c++ files
1 parent 5635391 commit ee2dd79

File tree

154 files changed

+2059
-216
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

154 files changed

+2059
-216
lines changed

scripts/addcopyright.sh

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
#!/bin/bash
2+
# licensecheck -r src
3+
4+
for i in $(<files); do
5+
author=
6+
authordate=
7+
eval $(git log --reverse --pretty="export author='%an' authordate=\"\$(date --date='%ai' +'%%B %Y')\"" $i | head -1)
8+
basename=$(basename $i)
9+
authoryear=${authordate#* }
10+
case $author in
11+
wonder|"Martin Dobias")
12+
authorname="Martin Dobias"
13+
authoremail="wonder.sk at gmail.com"
14+
;;
15+
16+
"Marco Hugentobler"|mhugent)
17+
authorname="Marco Hugentobler"
18+
authoremail="marco dot hugentobler at sourcepole dot ch"
19+
;;
20+
21+
"Pirmin Kalberer")
22+
authorname="Pirmin Kalberer"
23+
authoremail="pka at sourcepole dot ch"
24+
;;
25+
26+
rblazek)
27+
authorname="Radim Blazek"
28+
authoremail="radim dot blazek at gmail dot com"
29+
;;
30+
31+
timlinux)
32+
authorname="Tim Sutton"
33+
authoremail="tim dot linfiniti at com"
34+
;;
35+
36+
*)
37+
echo "Author $author not found."
38+
exit 1
39+
;;
40+
esac
41+
42+
src=$i
43+
if [ -f "$i.nocopyright" ]; then
44+
src=$i.nocopyright
45+
fi
46+
47+
cat - $src >/tmp/new <<EOF
48+
/***************************************************************************
49+
$basename
50+
---------------------
51+
begin : $authordate
52+
copyright : (C) $authoryear by $authorname
53+
email : $authoremail
54+
***************************************************************************
55+
* *
56+
* This program is free software; you can redistribute it and/or modify *
57+
* it under the terms of the GNU General Public License as published by *
58+
* the Free Software Foundation; either version 2 of the License, or *
59+
* (at your option) any later version. *
60+
* *
61+
***************************************************************************/
62+
EOF
63+
[ -f $i.nocopyright ] || mv $i $i.nocopyright
64+
cp /tmp/new $i
65+
done
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
/***************************************************************************
2+
HalfEdge.cc
3+
---------------------
4+
begin : September 2009
5+
copyright : (C) 2009 by Marco Hugentobler
6+
email : marco dot hugentobler at sourcepole dot ch
7+
***************************************************************************
8+
* *
9+
* This program is free software; you can redistribute it and/or modify *
10+
* it under the terms of the GNU General Public License as published by *
11+
* the Free Software Foundation; either version 2 of the License, or *
12+
* (at your option) any later version. *
13+
* *
14+
***************************************************************************/
115
#include "HalfEdge.h"
216

317
//empty file, all methods are inline
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
/***************************************************************************
2+
TriangleInterpolator.cc
3+
---------------------
4+
begin : September 2009
5+
copyright : (C) 2009 by Marco Hugentobler
6+
email : marco dot hugentobler at sourcepole dot ch
7+
***************************************************************************
8+
* *
9+
* This program is free software; you can redistribute it and/or modify *
10+
* it under the terms of the GNU General Public License as published by *
11+
* the Free Software Foundation; either version 2 of the License, or *
12+
* (at your option) any later version. *
13+
* *
14+
***************************************************************************/
115
#include "TriangleInterpolator.h"
216

317
//empty file, all methods are inline
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
/***************************************************************************
2+
Triangulation.cc
3+
---------------------
4+
begin : September 2009
5+
copyright : (C) 2009 by Marco Hugentobler
6+
email : marco dot hugentobler at sourcepole dot ch
7+
***************************************************************************
8+
* *
9+
* This program is free software; you can redistribute it and/or modify *
10+
* it under the terms of the GNU General Public License as published by *
11+
* the Free Software Foundation; either version 2 of the License, or *
12+
* (at your option) any later version. *
13+
* *
14+
***************************************************************************/
115
#include "Triangulation.h"
216

317
//empty file (abstract class)

src/analysis/raster/qgsrastercalcnode.cpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
/***************************************************************************
2+
qgsrastercalcnode.cpp
3+
---------------------
4+
begin : October 2010
5+
copyright : (C) 2010 by Marco Hugentobler
6+
email : marco dot hugentobler at sourcepole dot ch
7+
***************************************************************************
8+
* *
9+
* This program is free software; you can redistribute it and/or modify *
10+
* it under the terms of the GNU General Public License as published by *
11+
* the Free Software Foundation; either version 2 of the License, or *
12+
* (at your option) any later version. *
13+
* *
14+
***************************************************************************/
115
#include "qgsrastercalcnode.h"
216
#include <cfloat>
317

src/app/composer/qgscomposerlegendlayersdialog.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
/***************************************************************************
2-
qgscomposerlegendlayersdialog.cpp
3-
-------------------------------
4-
***************************************************************************/
5-
6-
/***************************************************************************
2+
qgscomposerlegendlayersdialog.cpp
3+
---------------------
4+
begin : December 2010
5+
copyright : (C) 2010 by Tim Sutton
6+
email : tim dot linfiniti at com
7+
***************************************************************************
78
* *
89
* This program is free software; you can redistribute it and/or modify *
910
* it under the terms of the GNU General Public License as published by *
1011
* the Free Software Foundation; either version 2 of the License, or *
1112
* (at your option) any later version. *
1213
* *
1314
***************************************************************************/
14-
1515
#include "qgscomposerlegendlayersdialog.h"
1616

1717
#include <QStandardItem>

src/app/composer/qgscomposerlegendlayersdialog.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
/***************************************************************************
2-
qgscomposerlegenditemdialog.h
3-
-----------------------------
4-
***************************************************************************/
5-
6-
/***************************************************************************
2+
qgscomposerlegendlayersdialog.h
3+
---------------------
4+
begin : December 2010
5+
copyright : (C) 2010 by Tim Sutton
6+
email : tim dot linfiniti at com
7+
***************************************************************************
78
* *
89
* This program is free software; you can redistribute it and/or modify *
910
* it under the terms of the GNU General Public License as published by *
1011
* the Free Software Foundation; either version 2 of the License, or *
1112
* (at your option) any later version. *
1213
* *
1314
***************************************************************************/
14-
1515
#ifndef QGSCOMPOSERLEGENDLAYERSDIALOG_H
1616
#define QGSCOMPOSERLEGENDLAYERSDIALOG_H
1717

src/app/legend/qgslegendgroup.cpp

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,16 @@
11
/***************************************************************************
2-
* Copyright (C) 2005 by Tim Sutton *
3-
* aps02ts@macbuntu *
2+
qgslegendgroup.cpp
3+
---------------------
4+
begin : January 2007
5+
copyright : (C) 2007 by Martin Dobias
6+
email : wonder.sk at gmail.com
7+
***************************************************************************
48
* *
59
* This program is free software; you can redistribute it and/or modify *
610
* it under the terms of the GNU General Public License as published by *
711
* the Free Software Foundation; either version 2 of the License, or *
812
* (at your option) any later version. *
913
* *
10-
* This program is distributed in the hope that it will be useful, *
11-
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
12-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13-
* GNU General Public License for more details. *
14-
* *
15-
* You should have received a copy of the GNU General Public License *
16-
* along with this program; if not, write to the *
17-
* Free Software Foundation, Inc., *
18-
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
1914
***************************************************************************/
2015
#include "qgsapplication.h"
2116
#include "qgisapp.h"

src/app/legend/qgslegendgroup.h

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,16 @@
11
/***************************************************************************
2-
* Copyright (C) 2005 by Tim Sutton *
3-
* aps02ts@macbuntu *
2+
qgslegendgroup.h
3+
---------------------
4+
begin : January 2007
5+
copyright : (C) 2007 by Martin Dobias
6+
email : wonder.sk at gmail.com
7+
***************************************************************************
48
* *
59
* This program is free software; you can redistribute it and/or modify *
610
* it under the terms of the GNU General Public License as published by *
711
* the Free Software Foundation; either version 2 of the License, or *
812
* (at your option) any later version. *
913
* *
10-
* This program is distributed in the hope that it will be useful, *
11-
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
12-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13-
* GNU General Public License for more details. *
14-
* *
15-
* You should have received a copy of the GNU General Public License *
16-
* along with this program; if not, write to the *
17-
* Free Software Foundation, Inc., *
18-
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
1914
***************************************************************************/
2015
#ifndef QGSLEGENDGROUP_H
2116
#define QGSLEGENDGROUP_H

src/app/legend/qgslegenditem.cpp

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,16 @@
11
/***************************************************************************
2-
* Copyright (C) 2005 by Tim Sutton *
3-
* aps02ts@macbuntu *
2+
qgslegenditem.cpp
3+
---------------------
4+
begin : January 2007
5+
copyright : (C) 2007 by Martin Dobias
6+
email : wonder.sk at gmail.com
7+
***************************************************************************
48
* *
59
* This program is free software; you can redistribute it and/or modify *
610
* it under the terms of the GNU General Public License as published by *
711
* the Free Software Foundation; either version 2 of the License, or *
812
* (at your option) any later version. *
913
* *
10-
* This program is distributed in the hope that it will be useful, *
11-
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
12-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13-
* GNU General Public License for more details. *
14-
* *
15-
* You should have received a copy of the GNU General Public License *
16-
* along with this program; if not, write to the *
17-
* Free Software Foundation, Inc., *
18-
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
1914
***************************************************************************/
2015
#include "qgslegenditem.h"
2116
#include <QCoreApplication>

0 commit comments

Comments
 (0)