make author information configurable
authorSylvain Thenault <sylvain.thenault@logilab.fr>
Thu, 08 Jan 2009 10:44:29 +0100
changeset 365 5d8336b70aa7
parent 364 226cbb207859
child 366 6d73bb2e9f6a
make author information configurable
devtools/devctl.py
skeleton/__pkginfo__.py.tmpl
skeleton/debian/control.tmpl
skeleton/debian/copyright.tmpl
skeleton/i18n/en.po
skeleton/i18n/fr.po
--- a/devtools/devctl.py	Thu Jan 08 09:59:12 2009 +0100
+++ b/devtools/devctl.py	Thu Jan 08 10:44:29 2009 +0100
@@ -378,6 +378,24 @@
           'help': 'verbose mode: will ask all possible configuration questions',
           }
          ),
+        ("author",
+         {'short': 'a', 'type' : 'string', 'metavar': '<author>',
+          'default': 'LOGILAB S.A. (Paris, FRANCE)',
+          'help': 'cube author',
+          }
+         ),
+        ("author-email",
+         {'short': 'e', 'type' : 'string', 'metavar': '<email>',
+          'default': 'contact@logilab.fr',
+          'help': 'cube author\'s email',
+          }
+         ),
+        ("author-web-site",
+         {'short': 'w', 'type' : 'string', 'metavar': '<web site>',
+          'default': 'http://www.logilab.fr',
+          'help': 'cube author\'s web site',
+          }
+         ),
         )
 
     
@@ -428,6 +446,9 @@
                    'dependancies' : dependancies,
                    'version'  : cubicwebversion,
                    'year'  : str(now().year),
+                   'author': self['author'],
+                   'author-email': self['author-email'],
+                   'author-web-site': self['author-web-site'],
                    }
         copy_skeleton(skeldir, cubedir, context)
 
--- a/skeleton/__pkginfo__.py.tmpl	Thu Jan 08 09:59:12 2009 +0100
+++ b/skeleton/__pkginfo__.py.tmpl	Thu Jan 08 10:44:29 2009 +0100
@@ -7,11 +7,11 @@
 version = '.'.join(str(num) for num in numversion)
 
 license = 'LCL'
-copyright = '''Copyright (c) 2008 LOGILAB S.A. (Paris, FRANCE).
-http://www.logilab.fr/ -- mailto:contact@logilab.fr'''
+copyright = '''Copyright (c) %(year)s %(author)s.
+%(author-web-site)s -- mailto:%(author-email)s'''
 
-author = 'Logilab'
-author_email = 'contact@logilab.fr'
+author = %(author)s'
+author_email = %(author-email)s'
 
 short_desc = '%(shortdesc)s'
 long_desc = '''%(longdesc)s'''
--- a/skeleton/debian/control.tmpl	Thu Jan 08 09:59:12 2009 +0100
+++ b/skeleton/debian/control.tmpl	Thu Jan 08 10:44:29 2009 +0100
@@ -1,8 +1,7 @@
 Source: %(distname)s
 Section: web
 Priority: optional
-Maintainer: Logilab Packaging Team <contact@logilab.fr>
-Uploaders: Sylvain Thenault <sylvain.thenault@logilab.fr> 
+Maintainer: %(author)s <%(author-email)s>
 Build-Depends: debhelper (>= 5.0.37.1), python (>=2.4), python-dev (>=2.4)
 Standards-Version: 3.8.0
 
--- a/skeleton/debian/copyright.tmpl	Thu Jan 08 09:59:12 2009 +0100
+++ b/skeleton/debian/copyright.tmpl	Thu Jan 08 10:44:29 2009 +0100
@@ -1,14 +1,8 @@
-This package was debianized by Logilab <contact@logilab.fr>
-
 Upstream Author: 
 
-  Logilab <contact@logilab.fr>
+  %(author)s <%(author-email)s>
 
 Copyright:
 
-Copyright (c) %(year)s LOGILAB S.A. (Paris, FRANCE).
-http://www.logilab.fr/ -- mailto:contact@logilab.fr
-
-Logilab Closed source License. This code is *NOT* open-source. Usage of this
-code is subject to a licence agreement. If you want to use it, you should
-contact logilab's sales service at commercial@logilab.fr .
+Copyright (c) %(year)s %(author)s.
+%(author-web-site)s -- mailto:%(author-email)s
--- a/skeleton/i18n/en.po	Thu Jan 08 09:59:12 2009 +0100
+++ b/skeleton/i18n/en.po	Thu Jan 08 10:44:29 2009 +0100
@@ -1,5 +1,6 @@
 msgid ""
 msgstr ""
+"MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "Generated-By: pygettext.py 1.5\n"
--- a/skeleton/i18n/fr.po	Thu Jan 08 09:59:12 2009 +0100
+++ b/skeleton/i18n/fr.po	Thu Jan 08 10:44:29 2009 +0100
@@ -1,10 +1,5 @@
 msgid ""
 msgstr ""
-"Project-Id-Version: 2.0\n"
-"POT-Creation-Date: 2006-01-12 17:35+CET\n"
-"PO-Revision-Date: 2008-02-15 12:55+0100\n"
-"Last-Translator: Logilab\n"
-"Language-Team: French <devel@logilab.fr.org>\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"