[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnue] r7053 - trunk/gnue-common/utils
From: |
kilo |
Subject: |
[gnue] r7053 - trunk/gnue-common/utils |
Date: |
Mon, 21 Feb 2005 08:43:41 -0600 (CST) |
Author: kilo
Date: 2005-02-21 08:43:40 -0600 (Mon, 21 Feb 2005)
New Revision: 7053
Modified:
trunk/gnue-common/utils/generate-gnue-config.py
Log:
Better handling of license string.
Modified: trunk/gnue-common/utils/generate-gnue-config.py
===================================================================
--- trunk/gnue-common/utils/generate-gnue-config.py 2005-02-21 14:28:16 UTC
(rev 7052)
+++ trunk/gnue-common/utils/generate-gnue-config.py 2005-02-21 14:43:40 UTC
(rev 7053)
@@ -23,9 +23,10 @@
# $Id$
"""
-Valid configuration options that apply to all GNUe tools
-(appears under [common] section in gnue.conf or
-can appear in each individual tool section)
+Generates a file named sample.gnue.conf in the current directory
+for all GNUe Tools it can find.
+In the file there is a description for each valid configuration setting
+and a setting = default_value line (commented out).
"""
import string
@@ -41,35 +42,39 @@
('designer', 'base.Config', 'Configuration Options for GNUe
Designer')
]
+licenseString = '''
+# Options for GNUe
+#
+# Copyright 2001-2005 Free Software Foundation
+#
+# This file is part of GNU Enterprise
+#
+# GNU Enterprise 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, or (at your option) any later version.
+#
+# GNU Enterprise 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 program; see the file COPYING. If not,
+# write to the Free Software Foundation, Inc., 59 Temple Place
+# - Suite 330, Boston, MA 02111-1307, USA.
+#
+#
+# Note: pointers to files and dirs are relative to the installation
+# location of GNUe.
+'''
+
class GenerateConf:
def __init__(self):
self._file = open('sample.gnue.conf', 'w')
def printFileHeader(self):
- self._file.write('# Options for GNUe\n')
- self._file.write('#\n')
- self._file.write('# Copyright 2001-2005 Free Software Foundation\n')
- self._file.write('#\n')
- self._file.write('# This file is part of GNU Enterprise\n')
- self._file.write('#\n')
- self._file.write('# GNU Enterprise is free software; you can
redistribute it\n')
- self._file.write('# and/or modify it under the terms of the GNU
General Public\n')
- self._file.write('# License as published by the Free Software
Foundation; either\n')
- self._file.write('# version 2, or (at your option) any later
version.\n')
- self._file.write('#\n')
- self._file.write('# GNU Enterprise is distributed in the hope that it
will be\n')
- self._file.write('# useful, but WITHOUT ANY WARRANTY; without even the
implied\n')
- self._file.write('# warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR\n')
- self._file.write('# PURPOSE. See the GNU General Public License for
more details.\n')
- self._file.write('#\n')
- self._file.write('# You should have received a copy of the GNU General
Public\n')
- self._file.write('# License along with program; see the file COPYING.
If not,\n')
- self._file.write('# write to the Free Software Foundation, Inc., 59
Temple Place\n')
- self._file.write('# - Suite 330, Boston, MA 02111-1307, USA.\n')
- self._file.write('#\n')
- self._file.write('#\n')
- self._file.write('# Note: pointers to files and dirs are relative to
the installation\n')
- self._file.write('# location of GNUe\n')
+ self._file.write(licenseString)
def printSectionHeader(self, tool, header):
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnue] r7053 - trunk/gnue-common/utils,
kilo <=