Skip to content
This repository has been archived by the owner on Dec 12, 2020. It is now read-only.

Commit

Permalink
Standardize license header text
Browse files Browse the repository at this point in the history
* Removed filename from the top for easier maintenance
* Removed specific author names for easier maintenance, the git commit log will more accurately track authors' contributions over time
* Updated copyright year to 2012
* Made the whole license block copy-and-pastable into new code files
  • Loading branch information
ginatrapani committed Jan 24, 2012
1 parent e73045d commit bd3adc8
Show file tree
Hide file tree
Showing 137 changed files with 711 additions and 1,293 deletions.
17 changes: 4 additions & 13 deletions AndroidManifest.sample.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Todo.txt Touch/AndroidManifest.xml
This file is part of Todo.txt Touch, an Android app for managing your todo.txt file (http://todotxt.com).
Copyright (c) 2009-2011 Gina Trapani, mathias, Hrayr Artunyan, Stephen Henderson, Tormod Haugen, Scott Anderson, Tomasz Roszko
Copyright (c) 2009-2012 Todo.txt contributors (http://todotxt.com)
LICENSE:
This file is part of Todo.txt Touch, an Android app for managing your todo.txt file (http://todotxt.com).
Todo.txt Touch 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.
Expand All @@ -19,17 +17,10 @@ details.
You should have received a copy of the GNU General Public License along with Todo.txt Touch. If not, see
<http://www.gnu.org/licenses/>.
@author Gina Trapani <ginatrapani[at]gmail[dot]com>
@author mathias <mathias[at]x2[dot](none)>
@author Hrayr Artunyan <hrayr[dot]artunyan[at]gmail[dot]com>
@author Stephen Henderson <me[at]steveh[dot]ca>
@author Tormod Haugen <tormodh[at]gmail[dot]com>
@author Scott Anderson <scotta[at]gmail[dot]com>
@author Tomasz Roszko <geekonek[at]gmail[dot]com>
@author Todo.txt contributors <todotxt@yahoogroups.com>
@license http://www.gnu.org/licenses/gpl.html
@copyright 2009-2011 Gina Trapani, mathias, Hrayr Artunyan, Stephen Henderson, Tormod Haugen, Scott Anderson, Tomasz Roszko
@copyright 2009-2012 Todo.txt contributors (http://todotxt.com)
-->

<manifest package="com.todotxt.todotxttouch"
android:versionCode="21"
android:versionName="0.7" xmlns:android="http://schemas.android.com/apk/res/android">
Expand Down
4 changes: 2 additions & 2 deletions extras/scripts/lic_header_java.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def update_source(filename, shortfn, copyright):
isUTF = False
nl = get_copyright_namelist(filename, False)
filename_str = filename.replace(TODOTXTOUCH_HOME, "Todo.txt Touch")
copyright_str = " * " + filename_str + "\n *\n * Copyright (c) 2009-2011 " + nl +"\n"
copyright_str = " * " + filename_str + "\n *\n * Copyright (c) 2009-2012 " + nl +"\n"

javaHeader = ""
if (fdata.startswith(utfstr)):
Expand Down Expand Up @@ -120,7 +120,7 @@ def build_docblock(nla, nlc):

def build_docblock_lic_copy(nl):
global license_line
return " * @license %s\n * @copyright 2009-2011 %s\n" % (license_line, nl)
return " * @license %s\n * @copyright 2009-2012 %s\n" % (license_line, nl)

def get_copyright_namelist(filename, emailsp):

Expand Down
4 changes: 2 additions & 2 deletions extras/scripts/lic_header_xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def update_source(filename, shortfn, copyright):
isUTF = False
nl = get_copyright_namelist(filename, False)
filename_str = filename.replace(TODOTXTOUCH_HOME, "Todo.txt Touch")
copyright_str = "" + filename_str + "\n\nCopyright (c) 2009-2011 " + nl +"\n"
copyright_str = "" + filename_str + "\n\nCopyright (c) 2009-2012 " + nl +"\n"

javaHeader = ""
if (fdata.startswith(utfstr)):
Expand Down Expand Up @@ -120,7 +120,7 @@ def build_docblock(nla, nlc):

def build_docblock_lic_copy(nl):
global license_line
return "@license %s\n@copyright 2009-2011 %s\n" % (license_line, nl)
return "@license %s\n@copyright 2009-2012 %s\n" % (license_line, nl)

def get_copyright_namelist(filename, emailsp):

Expand Down
14 changes: 5 additions & 9 deletions res/drawable/actionbar_background.xml
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>

<!--
This file is part of Todo.txt Touch, an Android app for managing your todo.txt file (http://todotxt.com).
Todo.txt Touch/res/drawable/actionbar_background.xml
Copyright (c) 2009-2011 Hrayr Artunyan
Copyright (c) 2009-2012 Todo.txt contributors (http://todotxt.com)
LICENSE:
This file is part of Todo.txt Touch, an Android app for managing your todo.txt file (http://todotxt.com).
Todo.txt Touch 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.
Expand All @@ -21,11 +18,10 @@ details.
You should have received a copy of the GNU General Public License along with Todo.txt Touch. If not, see
<http://www.gnu.org/licenses/>.
@author Hrayr Artunyan <hrayr[dot]artunyan[at]gmail[dot]com>
@author Todo.txt contributors <todotxt@yahoogroups.com>
@license http://www.gnu.org/licenses/gpl.html
@copyright 2009-2011 Hrayr Artunyan
-->

@copyright 2009-2012 Todo.txt contributors (http://todotxt.com)
-->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
Expand Down
13 changes: 5 additions & 8 deletions res/drawable/actionbar_btn_default.xml
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>

<!--
This file is part of Todo.txt Touch, an Android app for managing your todo.txt file (http://todotxt.com).
Todo.txt Touch/res/drawable/actionbar_btn_default.xml
Copyright (c) 2009-2011 Hrayr Artunyan
Copyright (c) 2009-2012 Todo.txt contributors (http://todotxt.com)
LICENSE:
This file is part of Todo.txt Touch, an Android app for managing your todo.txt file (http://todotxt.com).
Todo.txt Touch 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.
Expand All @@ -21,10 +18,10 @@ details.
You should have received a copy of the GNU General Public License along with Todo.txt Touch. If not, see
<http://www.gnu.org/licenses/>.
@author Hrayr Artunyan <hrayr[dot]artunyan[at]gmail[dot]com>
@author Todo.txt contributors <todotxt@yahoogroups.com>
@license http://www.gnu.org/licenses/gpl.html
@copyright 2009-2011 Hrayr Artunyan
-->
@copyright 2009-2012 Todo.txt contributors (http://todotxt.com)
-->

<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
Expand Down
13 changes: 5 additions & 8 deletions res/drawable/actionbar_btn_pressed.xml
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>

<!--
This file is part of Todo.txt Touch, an Android app for managing your todo.txt file (http://todotxt.com).
Todo.txt Touch/res/drawable/actionbar_btn_pressed.xml
Copyright (c) 2009-2011 Hrayr Artunyan
Copyright (c) 2009-2012 Todo.txt contributors (http://todotxt.com)
LICENSE:
This file is part of Todo.txt Touch, an Android app for managing your todo.txt file (http://todotxt.com).
Todo.txt Touch 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.
Expand All @@ -21,10 +18,10 @@ details.
You should have received a copy of the GNU General Public License along with Todo.txt Touch. If not, see
<http://www.gnu.org/licenses/>.
@author Hrayr Artunyan <hrayr[dot]artunyan[at]gmail[dot]com>
@author Todo.txt contributors <todotxt@yahoogroups.com>
@license http://www.gnu.org/licenses/gpl.html
@copyright 2009-2011 Hrayr Artunyan
-->
@copyright 2009-2012 Todo.txt contributors (http://todotxt.com)
-->

<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
Expand Down
13 changes: 5 additions & 8 deletions res/drawable/actionbar_btn_selected.xml
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>

<!--
This file is part of Todo.txt Touch, an Android app for managing your todo.txt file (http://todotxt.com).
Todo.txt Touch/res/drawable/actionbar_btn_selected.xml
Copyright (c) 2009-2011 Hrayr Artunyan
Copyright (c) 2009-2012 Todo.txt contributors (http://todotxt.com)
LICENSE:
This file is part of Todo.txt Touch, an Android app for managing your todo.txt file (http://todotxt.com).
Todo.txt Touch 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.
Expand All @@ -21,10 +18,10 @@ details.
You should have received a copy of the GNU General Public License along with Todo.txt Touch. If not, see
<http://www.gnu.org/licenses/>.
@author Hrayr Artunyan <hrayr[dot]artunyan[at]gmail[dot]com>
@author Todo.txt contributors <todotxt@yahoogroups.com>
@license http://www.gnu.org/licenses/gpl.html
@copyright 2009-2011 Hrayr Artunyan
-->
@copyright 2009-2012 Todo.txt contributors (http://todotxt.com)
-->

<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
Expand Down
14 changes: 5 additions & 9 deletions res/drawable/actionbar_button.xml
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>

<!--
This file is part of Todo.txt Touch, an Android app for managing your todo.txt file (http://todotxt.com).
Todo.txt Touch/res/drawable/actionbar_button.xml
Copyright (c) 2009-2011 Hrayr Artunyan
Copyright (c) 2009-2012 Todo.txt contributors (http://todotxt.com)
LICENSE:
This file is part of Todo.txt Touch, an Android app for managing your todo.txt file (http://todotxt.com).
Todo.txt Touch 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.
Expand All @@ -21,11 +18,10 @@ details.
You should have received a copy of the GNU General Public License along with Todo.txt Touch. If not, see
<http://www.gnu.org/licenses/>.
@author Hrayr Artunyan <hrayr[dot]artunyan[at]gmail[dot]com>
@author Todo.txt contributors <todotxt@yahoogroups.com>
@license http://www.gnu.org/licenses/gpl.html
@copyright 2009-2011 Hrayr Artunyan
-->

@copyright 2009-2012 Todo.txt contributors (http://todotxt.com)
-->

<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_focused="true" android:state_pressed="true" android:drawable="@drawable/actionbar_btn_pressed"/>
Expand Down
13 changes: 5 additions & 8 deletions res/drawable/actionbar_button_set.xml
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>

<!--
This file is part of Todo.txt Touch, an Android app for managing your todo.txt file (http://todotxt.com).
Todo.txt Touch/res/drawable/actionbar_button_set.xml
Copyright (c) 2009-2011 Hrayr Artunyan
Copyright (c) 2009-2012 Todo.txt contributors (http://todotxt.com)
LICENSE:
This file is part of Todo.txt Touch, an Android app for managing your todo.txt file (http://todotxt.com).
Todo.txt Touch 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.
Expand All @@ -21,10 +18,10 @@ details.
You should have received a copy of the GNU General Public License along with Todo.txt Touch. If not, see
<http://www.gnu.org/licenses/>.
@author Hrayr Artunyan <hrayr[dot]artunyan[at]gmail[dot]com>
@author Todo.txt contributors <todotxt@yahoogroups.com>
@license http://www.gnu.org/licenses/gpl.html
@copyright 2009-2011 Hrayr Artunyan
-->
@copyright 2009-2012 Todo.txt contributors (http://todotxt.com)
-->


<shape xmlns:android="http://schemas.android.com/apk/res/android"
Expand Down
14 changes: 5 additions & 9 deletions res/drawable/actionbar_center_btn_pressed.xml
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>

<!--
This file is part of Todo.txt Touch, an Android app for managing your todo.txt file (http://todotxt.com).
Todo.txt Touch/res/drawable/actionbar_center_btn_pressed.xml
Copyright (c) 2009-2011 Hrayr Artunyan
Copyright (c) 2009-2012 Todo.txt contributors (http://todotxt.com)
LICENSE:
This file is part of Todo.txt Touch, an Android app for managing your todo.txt file (http://todotxt.com).
Todo.txt Touch 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.
Expand All @@ -21,11 +18,10 @@ details.
You should have received a copy of the GNU General Public License along with Todo.txt Touch. If not, see
<http://www.gnu.org/licenses/>.
@author Hrayr Artunyan <hrayr[dot]artunyan[at]gmail[dot]com>
@author Todo.txt contributors <todotxt@yahoogroups.com>
@license http://www.gnu.org/licenses/gpl.html
@copyright 2009-2011 Hrayr Artunyan
-->

@copyright 2009-2012 Todo.txt contributors (http://todotxt.com)
-->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
Expand Down
13 changes: 5 additions & 8 deletions res/drawable/actionbar_center_btn_selected.xml
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>

<!--
This file is part of Todo.txt Touch, an Android app for managing your todo.txt file (http://todotxt.com).
Todo.txt Touch/res/drawable/actionbar_center_btn_selected.xml
Copyright (c) 2009-2011 Hrayr Artunyan
Copyright (c) 2009-2012 Todo.txt contributors (http://todotxt.com)
LICENSE:
This file is part of Todo.txt Touch, an Android app for managing your todo.txt file (http://todotxt.com).
Todo.txt Touch 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.
Expand All @@ -21,10 +18,10 @@ details.
You should have received a copy of the GNU General Public License along with Todo.txt Touch. If not, see
<http://www.gnu.org/licenses/>.
@author Hrayr Artunyan <hrayr[dot]artunyan[at]gmail[dot]com>
@author Todo.txt contributors <todotxt@yahoogroups.com>
@license http://www.gnu.org/licenses/gpl.html
@copyright 2009-2011 Hrayr Artunyan
-->
@copyright 2009-2012 Todo.txt contributors (http://todotxt.com)
-->

<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
Expand Down
13 changes: 5 additions & 8 deletions res/drawable/actionbar_center_button.xml
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>

<!--
This file is part of Todo.txt Touch, an Android app for managing your todo.txt file (http://todotxt.com).
Todo.txt Touch/res/drawable/actionbar_center_button.xml
Copyright (c) 2009-2011 Hrayr Artunyan
Copyright (c) 2009-2012 Todo.txt contributors (http://todotxt.com)
LICENSE:
This file is part of Todo.txt Touch, an Android app for managing your todo.txt file (http://todotxt.com).
Todo.txt Touch 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.
Expand All @@ -21,10 +18,10 @@ details.
You should have received a copy of the GNU General Public License along with Todo.txt Touch. If not, see
<http://www.gnu.org/licenses/>.
@author Hrayr Artunyan <hrayr[dot]artunyan[at]gmail[dot]com>
@author Todo.txt contributors <todotxt@yahoogroups.com>
@license http://www.gnu.org/licenses/gpl.html
@copyright 2009-2011 Hrayr Artunyan
-->
@copyright 2009-2012 Todo.txt contributors (http://todotxt.com)
-->


<selector xmlns:android="http://schemas.android.com/apk/res/android">
Expand Down
13 changes: 5 additions & 8 deletions res/drawable/actionbar_dark_background.xml
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>

<!--
This file is part of Todo.txt Touch, an Android app for managing your todo.txt file (http://todotxt.com).
Todo.txt Touch/res/drawable/actionbar_dark_background.xml
Copyright (c) 2009-2011 Hrayr Artunyan
Copyright (c) 2009-2012 Todo.txt contributors (http://todotxt.com)
LICENSE:
This file is part of Todo.txt Touch, an Android app for managing your todo.txt file (http://todotxt.com).
Todo.txt Touch 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.
Expand All @@ -21,10 +18,10 @@ details.
You should have received a copy of the GNU General Public License along with Todo.txt Touch. If not, see
<http://www.gnu.org/licenses/>.
@author Hrayr Artunyan <hrayr[dot]artunyan[at]gmail[dot]com>
@author Todo.txt contributors <todotxt@yahoogroups.com>
@license http://www.gnu.org/licenses/gpl.html
@copyright 2009-2011 Hrayr Artunyan
-->
@copyright 2009-2012 Todo.txt contributors (http://todotxt.com)
-->

<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
Expand Down

0 comments on commit bd3adc8

Please sign in to comment.