projects
/
update-copyright.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ran update-copyright.
[update-copyright.git]
/
update_copyright
/
project.py
diff --git
a/update_copyright/project.py
b/update_copyright/project.py
index 2a408f5bb47b16a521fec80432247620fd4ead9a..ac0e4845f585bf2653a313da0022fbc33524f059 100644
(file)
--- a/
update_copyright/project.py
+++ b/
update_copyright/project.py
@@
-1,20
+1,19
@@
-# Copyright (C) 2012 W. Trevor King
+# Copyright (C) 2012 W. Trevor King
<wking@tremily.us>
#
# This file is part of update-copyright.
#
#
# This file is part of update-copyright.
#
-# update-copyright 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 3 of the
-#
License, or (at your option) any
later version.
+# update-copyright 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 3 of the License, or (at your option) any
+# later version.
#
#
-# update-copyright is distributed in the hope that it will be useful,
-#
but WITHOUT ANY WARRANTY; without even the implied warranty of
-#
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-#
General Public License for
more details.
+# update-copyright is distributed in the hope that it will be useful,
but
+#
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+#
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+# more details.
#
#
-# You should have received a copy of the GNU General Public License
-# along with update-copyright. If not, see
-# <http://www.gnu.org/licenses/>.
+# You should have received a copy of the GNU General Public License along with
+# update-copyright. If not, see <http://www.gnu.org/licenses/>.
"""Project-specific configuration."""
"""Project-specific configuration."""
@@
-189,8
+188,13
@@
class Project (object):
authors = self._vcs.authors(filename=filename)
new_contents = _utils.update_copyright(
contents=contents, original_year=original_year, authors=authors,
authors = self._vcs.authors(filename=filename)
new_contents = _utils.update_copyright(
contents=contents, original_year=original_year, authors=authors,
- text=self._copyright, info=self._info(), prefix=
'# '
,
+ text=self._copyright, info=self._info(), prefix=
('# ', '# ', None)
,
width=self._width, tag=self._copyright_tag)
width=self._width, tag=self._copyright_tag)
+ new_contents = _utils.update_copyright(
+ contents=new_contents, original_year=original_year,
+ authors=authors, text=self._copyright, info=self._info(),
+ prefix=('/* ', ' * ', ' */'), width=self._width,
+ tag=self._copyright_tag)
_utils.set_contents(
filename=filename, contents=new_contents,
original_contents=contents, unicode=True, encoding=self._encoding,
_utils.set_contents(
filename=filename, contents=new_contents,
original_contents=contents, unicode=True, encoding=self._encoding,