[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 03/10: gr_modtool: add test on license_file
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 03/10: gr_modtool: add test on license_file for option --copyright. fix typo |
Date: |
Sun, 21 Feb 2016 15:39:13 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
jcorgan pushed a commit to branch master
in repository gnuradio.
commit baab51695118fcdf7201c5f52cd2b12420f7328d
Author: Andrej Rode <address@hidden>
Date: Fri Feb 12 14:31:25 2016 +0100
gr_modtool: add test on license_file for option --copyright. fix typo
---
gr-utils/python/modtool/modtool_add.py | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/gr-utils/python/modtool/modtool_add.py
b/gr-utils/python/modtool/modtool_add.py
index f04d9d9..3627dc6 100644
--- a/gr-utils/python/modtool/modtool_add.py
+++ b/gr-utils/python/modtool/modtool_add.py
@@ -103,11 +103,13 @@ class ModToolAdd(ModTool):
raise ModToolException('Invalid block name.')
print "Block/code identifier: " + self._info['blockname']
self._info['fullblockname'] = self._info['modname'] + '_' +
self._info['blockname']
- self._info['copyrightholder'] = options.copyright
- if self._info['copyrightholder'] is None:
- self._info['copyrightholder'] = '<+YOU OR YOUR COMPANY+>'
- elif self._info['is_component']:
- print "For GNUradio components the FSF is added as copyright
holder"
+ if not options.license_file:
+ self._info['copyrightholder'] = options.copyright
+ if self._info['copyrightholder'] is None:
+ self._info['copyrightholder'] = '<+YOU OR YOUR COMPANY+>'
+ elif self._info['is_component']:
+ print "For GNU Radio components the FSF is added as copyright
holder"
+ self._license_file = options.license_file
self._info['license'] = self.setup_choose_license()
if options.argument_list is not None:
self._info['arglist'] = options.argument_list
@@ -127,7 +129,6 @@ class ModToolAdd(ModTool):
print "Warning: Autotools modules are not supported. ",
print "Files will be created, but Makefiles will not be edited."
self._skip_cmakefiles = True
- self._license_file = options.license_file
def setup_choose_license(self):
""" Select a license by the following rules, in this order:
- [Commit-gnuradio] [gnuradio] branch master updated (64f3b70 -> 762a089), git, 2016/02/21
- [Commit-gnuradio] [gnuradio] 03/10: gr_modtool: add test on license_file for option --copyright. fix typo,
git <=
- [Commit-gnuradio] [gnuradio] 10/10: Merge remote-tracking branch 'michaelld/fix_version_info', git, 2016/02/21
- [Commit-gnuradio] [gnuradio] 06/10: cmake: when not release and no GIT_EXECUTABLE nad not .git directory in the archive, allow external overriding of version info via GR_GIT_COUNT and GR_GIT_HASH, similar to what UHD allows., git, 2016/02/21
- [Commit-gnuradio] [gnuradio] 05/10: qtgui: fix grc defs for axislabels patch, git, 2016/02/21
- [Commit-gnuradio] [gnuradio] 09/10: Merge remote-tracking branch 'noc0lour/gr_modtool-name_option', git, 2016/02/21
- [Commit-gnuradio] [gnuradio] 07/10: Merge branch 'maint', git, 2016/02/21
- [Commit-gnuradio] [gnuradio] 08/10: Merge remote-tracking branch 'osh/qtgui_axislabels_onoff', git, 2016/02/21
- [Commit-gnuradio] [gnuradio] 02/10: gr-utils: modtool: add option --copyright to add function to automatically fillout name in LICENSE file., git, 2016/02/21
- [Commit-gnuradio] [gnuradio] 01/10: qtgui: allow axis labels on/off modes, git, 2016/02/21
- [Commit-gnuradio] [gnuradio] 04/10: qtgui: add axis labels to raster, constellation, histogram. Fix waterfall axis issue, git, 2016/02/21