Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
add missing copyright headers
  • Loading branch information
jef-n committed Jun 3, 2016
1 parent 9c7dbb9 commit 6e66eef
Show file tree
Hide file tree
Showing 99 changed files with 1,359 additions and 130 deletions.
15 changes: 15 additions & 0 deletions ci/travis/linux/after_script.sh
@@ -1 +1,16 @@
###########################################################################
# after_script.sh
# ---------------------
# Date : September 2015
# Copyright : (C) 2015 by Matthias Kuhn
# Email : matthias at opengis 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. #
# #
###########################################################################

[ -r /tmp/ctest-important.log ] && cat /tmp/ctest-important.log
15 changes: 15 additions & 0 deletions ci/travis/linux/before_install.sh
@@ -1,4 +1,19 @@
#!/bin/bash
###########################################################################
# before_install.sh
# ---------------------
# Date : August 2015
# Copyright : (C) 2015 by Nyall Dawson
# Email : nyall dot dawson at gmail dot com
###########################################################################
# #
# 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. #
# #
###########################################################################


DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
${DIR}/qt${QT_VERSION}/before_install.sh
15 changes: 15 additions & 0 deletions ci/travis/linux/before_script.sh
@@ -1,3 +1,18 @@
###########################################################################
# before_script.sh
# ---------------------
# Date : August 2015
# Copyright : (C) 2015 by Nyall Dawson
# Email : nyall dot dawson at gmail dot com
###########################################################################
# #
# 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. #
# #
###########################################################################

printf "[qgis_test]\nhost=localhost\ndbname=qgis_test\nuser=postgres" > ~/.pg_service.conf

export PGUSER=postgres
Expand Down
15 changes: 15 additions & 0 deletions ci/travis/linux/install.sh
@@ -1,4 +1,19 @@
#!/bin/bash
###########################################################################
# install.sh
# ---------------------
# Date : August 2015
# Copyright : (C) 2015 by Nyall Dawson
# Email : nyall dot dawson at gmail dot com
###########################################################################
# #
# 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. #
# #
###########################################################################


DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
${DIR}/qt${QT_VERSION}/install.sh
15 changes: 15 additions & 0 deletions ci/travis/linux/qt4/before_install.sh
@@ -1,3 +1,18 @@
###########################################################################
# before_install.sh
# ---------------------
# Date : March 2016
# Copyright : (C) 2016 by Matthias Kuhn
# Email : matthias at opengis 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. #
# #
###########################################################################

export DEBIAN_FRONTEND=noninteractive

pushd ${HOME}
Expand Down
15 changes: 15 additions & 0 deletions ci/travis/linux/qt4/install.sh
@@ -1,3 +1,18 @@
###########################################################################
# install.sh
# ---------------------
# Date : March 2016
# Copyright : (C) 2016 by Matthias Kuhn
# Email : matthias at opengis 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. #
# #
###########################################################################

mkdir build
cd build

Expand Down
15 changes: 15 additions & 0 deletions ci/travis/linux/qt4/script.sh
@@ -1,3 +1,18 @@
###########################################################################
# script.sh
# ---------------------
# Date : March 2016
# Copyright : (C) 2016 by Matthias Kuhn
# Email : matthias at opengis 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. #
# #
###########################################################################

export PYTHONPATH=${HOME}/osgeo4travis/lib/python2.7/site-packages/
export PATH=${HOME}/osgeo4travis/bin:${HOME}/osgeo4travis/sbin:${PATH}
export LD_LIBRARY_PATH=${HOME}/osgeo4travis/lib
Expand Down
15 changes: 15 additions & 0 deletions ci/travis/linux/qt5/before_install.sh
@@ -1,3 +1,18 @@
###########################################################################
# before_install.sh
# ---------------------
# Date : March 2016
# Copyright : (C) 2016 by Matthias Kuhn
# Email : matthias at opengis 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. #
# #
###########################################################################

export DEBIAN_FRONTEND=noninteractive
export CORES=2

Expand Down
15 changes: 15 additions & 0 deletions ci/travis/linux/qt5/install.sh
@@ -1,3 +1,18 @@
###########################################################################
# install.sh
# ---------------------
# Date : March 2016
# Copyright : (C) 2016 by Matthias Kuhn
# Email : matthias at opengis 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. #
# #
###########################################################################

mkdir build
cd build

Expand Down
15 changes: 15 additions & 0 deletions ci/travis/linux/qt5/script.sh
@@ -1,3 +1,18 @@
###########################################################################
# script.sh
# ---------------------
# Date : March 2016
# Copyright : (C) 2016 by Matthias Kuhn
# Email : matthias at opengis 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. #
# #
###########################################################################

export PYTHONPATH=${HOME}/osgeo4travis/lib/python3.3/site-packages/
export PATH=${HOME}/osgeo4travis/bin:${HOME}/osgeo4travis/sbin:${PATH}
export LD_LIBRARY_PATH=${HOME}/osgeo4travis/lib
Expand Down
15 changes: 15 additions & 0 deletions ci/travis/linux/script.sh
@@ -1,4 +1,19 @@
#!/bin/bash
###########################################################################
# script.sh
# ---------------------
# Date : August 2015
# Copyright : (C) 2015 by Nyall Dawson
# Email : nyall dot dawson at gmail dot com
###########################################################################
# #
# 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. #
# #
###########################################################################


DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
${DIR}/qt${QT_VERSION}/script.sh
15 changes: 15 additions & 0 deletions ci/travis/osx/before_install.sh
@@ -1,3 +1,18 @@
###########################################################################
# before_install.sh
# ---------------------
# Date : August 2015
# Copyright : (C) 2015 by Nyall Dawson
# Email : nyall dot dawson at gmail dot com
###########################################################################
# #
# 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. #
# #
###########################################################################

brew tap osgeo/osgeo4mac
brew update
brew install osgeo/osgeo4mac/qgis-28 --without-postgis --without-postgresql --without-grass --without-gpsbabel --only-dependencies
Expand Down
15 changes: 15 additions & 0 deletions ci/travis/osx/install.sh
@@ -1,3 +1,18 @@
###########################################################################
# install.sh
# ---------------------
# Date : August 2015
# Copyright : (C) 2015 by Nyall Dawson
# Email : nyall dot dawson at gmail dot com
###########################################################################
# #
# 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. #
# #
###########################################################################

mkdir build
cd build
#no PGTEST for OSX - can't get postgres to start with brew install
Expand Down
15 changes: 15 additions & 0 deletions ci/travis/osx/script.sh
@@ -1,3 +1,18 @@
###########################################################################
# script.sh
# ---------------------
# Date : August 2015
# Copyright : (C) 2015 by Nyall Dawson
# Email : nyall dot dawson at gmail dot com
###########################################################################
# #
# 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. #
# #
###########################################################################

echo $PATH

export PATH=/usr/bin:${PATH}
Expand Down
15 changes: 15 additions & 0 deletions ms-windows/cygwin/package.sh
@@ -1,4 +1,19 @@
#!/bin/bash
###########################################################################
# package.sh
# ---------------------
# Date : April 2013
# Copyright : (C) 2013 by Juergen E. Fischer
# Email : jef at norbit dot de
###########################################################################
# #
# 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. #
# #
###########################################################################


set -e

Expand Down
29 changes: 28 additions & 1 deletion scripts/addcopyright.sh
Expand Up @@ -16,6 +16,8 @@

# licensecheck -r src

export LC_TIME=C

set -e

if [ $# -gt 0 ]; then
Expand Down Expand Up @@ -155,7 +157,7 @@ for i in $FILES; do
authoremail="loi at faunalia dot it"
;;

"Nathan Woodrow")
"Nathan Woodrow"|Nathan)
authorname="Nathan Woodrow"
authoremail="woodrow dot nathan at gmail dot com"
;;
Expand Down Expand Up @@ -190,6 +192,31 @@ for i in $FILES; do
authoremail="elpaso at itopen dot it"
;;

"Patrick Valsecchi")
authorname="Patrick Valsecchi"
authoremail="patrick dot valsecchi at camptocamp dot com"
;;

"Stéphane Brunner")
authorname="Stéphane Brunner"
authoremail="stephane dot brunner at camptocamp dot com"
;;

"ersts")
authorname="Peter Ersts"
authoremail="ersts at amnh dot org"
;;

"Etienne Tourigny")
authorname="Etienne Tourigny"
authoremail="etourigny dot dev at gmail dot com"
;;

"Nyall Dawson")
authorname="Nyall Dawson"
authoremail="nyall dot dawson at gmail dot com"
;;

*)
echo "Author $author not found."
exit 1
Expand Down
2 changes: 1 addition & 1 deletion scripts/astyle.sh
Expand Up @@ -78,7 +78,7 @@ for f in "$@"; do

*.cpp|*.h|*.c|*.h|*.cxx|*.hxx|*.c++|*.h++|*.cc|*.hh|*.C|*.H|*.hpp)
if [ -x "$f" ]; then
chmod a-x "$f"
chmod a-x "$f"
fi
cmd=astyleit
;;
Expand Down
2 changes: 1 addition & 1 deletion scripts/chkcopyrights.sh
Expand Up @@ -16,5 +16,5 @@


licensecheck -r . |
egrep -v "\/debian\/|.\/src\/plugins\/dxf2shp_converter\/dxflib|\.\/ms-windows\/osgeo4w\/untgz\/|\.\/src\/app\/gps\/qwtpolar-0.1|\.\/src\/app\/gps\/qwtpolar-1.0|: BSD \(3 clause\)|: GPL \(v[23] or later\)$|: LGPL \(v2 or later\)$|: MIT\/X11 \(BSD like\)$|: Apache \(v2\.0\) GPL \(v2 or later\)$|: LGPL$|: Apache \(v2\.0\)$|: zlib\/libpng$|: GPL LGPL$|GENERATED FILE" |
egrep -v "\/debian\/|.\/src\/plugins\/dxf2shp_converter\/dxflib|\.\/python\/ext-libs|\.\/ms-windows\/osgeo4w\/untgz\/|\.\/src\/app\/gps\/qwtpolar-|\.\/src\/app\/gps\/qwtpolar-1.0|: BSD \(3 clause\)|: GPL \(v[23] or later\)$|: LGPL \(v2 or later\)$|: MIT\/X11 \(BSD like\)$|: Apache \(v2\.0\) GPL \(v2 or later\)$|: LGPL$|: Apache \(v2\.0\)$|: zlib\/libpng$|: GPL LGPL$|GENERATED FILE" |
sed -e "s/:.*$//"
15 changes: 15 additions & 0 deletions scripts/create-transifex-resources.sh
@@ -1,4 +1,19 @@
#!/bin/bash
###########################################################################
# create-transifex-resources.sh
# ---------------------
# Date : March 2013
# Copyright : (C) 2013 by Tim Sutton
# Email : tim at linfiniti dot com
###########################################################################
# #
# 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. #
# #
###########################################################################


# This script is used to register QGIS translatable resources with Transifex
# http://transifex.com
Expand Down

3 comments on commit 6e66eef

@NathanW2
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jef-n do you have a script that does this?

@jef-n
Copy link
Member Author

@jef-n jef-n commented on 6e66eef Jun 3, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no full automatic. scripts/chkcopyright.sh lists (but misses some "malformed" headers), scripts/addcopyrights.sh adds.

@NathanW2
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the tip! That will be super handy.

Please sign in to comment.