[Tool][Generator] License boilerplates
authorRafal Galka <r.galka@samsung.com>
Thu, 8 Jan 2015 12:06:45 +0000 (13:06 +0100)
committerRafal Galka <r.galka@samsung.com>
Wed, 14 Jan 2015 08:23:43 +0000 (17:23 +0900)
Change-Id: I9153be4cac3829b788bdc26d2ff1bd6071d1fe88

tools/skeleton_generator/WAPIOven.py
tools/skeleton_generator/WebIDL.py
tools/skeleton_generator/tpl/tpl_api.js
tools/skeleton_generator/tpl/tpl_extension.cc
tools/skeleton_generator/tpl/tpl_extension.h
tools/skeleton_generator/tpl/tpl_instance.cc
tools/skeleton_generator/tpl/tpl_instance.h

index 5b7bf4bd42ee2357ec83d0cdc4cc19e9cf328389..752cb1d1c22c05dc54fb0ee49d0b808d719b678a 100644 (file)
@@ -1,6 +1,11 @@
+# Copyright 2015 Samsung Electronics Co, Ltd. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
 import WebIDL
 from collections import OrderedDict
 from Queue import Queue
+from datetime import date
 import jinja2
 
 cppPrimitiveMap = {
@@ -185,7 +190,8 @@ class Compiler(IndentPrintable):
             'callbacks':self.ctx['callback'],
             'tizen': self.ctx['Tizen'],
             'window': self.ctx['Window'],
-            'cmdtable' : self.ctx['cmdtable']})
+            'cmdtable' : self.ctx['cmdtable'],
+            'year' : date.today().year})
 
 
     TPL_EXTENSION_H = "tpl_extension.h"
@@ -221,6 +227,7 @@ class Compiler(IndentPrintable):
         vals['tizen'] = self.ctx['Tizen']
         vals['window'] = self.ctx['Window']
         vals['cmdtable'] = self.ctx['cmdtable']
+        vals['year'] = date.today().year
 
         return tpl.render(vals)
 
index 31aeef12ec22ba07bd0a6b16fb3e3f5cf94a0c1f..db2f9b2d954160971f07c680c6d60cfaa1009f3c 100644 (file)
@@ -1,3 +1,7 @@
+# Copyright 2015 Samsung Electronics Co, Ltd. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
 import sys
 from pprint import pprint
 
index 5da5cc814f8a9eed3e2fe87be1f8ed02a2a8214a..3791c8fddac44df294ba8437fd572d1e8f598520 100644 (file)
@@ -1,5 +1,10 @@
+/* global tizen, xwalk, extension */
+
+// Copyright {{year}} Samsung Electronics Co, Ltd. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
 {% for module in modules %}
-// {{module.name}}
 
 var validator_ = xwalk.utils.validator;
 var types_ = validator_.Types;
index 3a9a8b63348e4f7103800c76e8e36bd767609690..9aafa1be0d506ea0975965afaf8f16bf66eece93 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright 2014 Samsung Electronics Co, Ltd. All rights reserved.
+// Copyright {{year}} Samsung Electronics Co, Ltd. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
index 92d55d820414faafa482ec1a68b33fdb5875b84d..e1067b4ca36263a16eee47446aea9e73e0f27bfa 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright 2014 Samsung Electronics Co, Ltd. All rights reserved.
+// Copyright {{year}} Samsung Electronics Co, Ltd. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
index ed18fcee99a8f03c598e65f5b0b1c65c99fd22d9..a6f8b311d1750819f5229880e9a73d5d29a9f8ac 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright 2014 Samsung Electronics Co, Ltd. All rights reserved.
+// Copyright {{year}} Samsung Electronics Co, Ltd. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
index 3e5fd69dffdef9ab9be4d5177de22983004bad79..ab687370a3060c6346e5877658560ce2f0f53c10 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright 2014 Samsung Electronics Co, Ltd. All rights reserved.
+// Copyright {{year}} Samsung Electronics Co, Ltd. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.