Don't colorize output to successfully-built file.

Start the process of porting the pywizard to work with kdesvn-build.

svn path=/trunk/kdenonbeta/kdecvs-build/; revision=410810
wilder
Michael Pyne 21 years ago
parent fe23614789
commit 66fd9c743c
  1. 1
      HISTORY
  2. 4
      kdesvn-build
  3. 68
      kdesvn-pywizard

@ -1,6 +1,7 @@
Version history: 0.94 Version history: 0.94
* Allow modules of the form KDE/kdelibs to be defined as module names, in case * Allow modules of the form KDE/kdelibs to be defined as module names, in case
you'd like to mirror the layout of the Subversion repository more closely. you'd like to mirror the layout of the Subversion repository more closely.
* Don't colorize output to the successfully-built file.
Version history: 0.93 Version history: 0.93
* Rewrite the checkout and updating code. It's ever so slightly easier to * Rewrite the checkout and updating code. It's ever so slightly easier to

@ -899,7 +899,7 @@ sub get_install_list
} }
else else
{ {
# Get list of built items from $kdesvn/successfully-built # Get list of built items from $logdir/latest/build-status
my $logdir = get_subdir_path('global', 'log-dir'); my $logdir = get_subdir_path('global', 'log-dir');
if (not open BUILTLIST, "<$logdir/latest/build-status") if (not open BUILTLIST, "<$logdir/latest/build-status")
@ -2510,7 +2510,7 @@ sub handle_build
open BUILT_LIST, ">$kdesvn/successfully-built"; open BUILT_LIST, ">$kdesvn/successfully-built";
foreach $module (@build_done) foreach $module (@build_done)
{ {
print clr "g[$module]\n"; print "$module\n";
print BUILT_LIST "$module\n"; print BUILT_LIST "$module\n";
} }
close BUILT_LIST; close BUILT_LIST;

@ -1,8 +1,8 @@
#!/usr/bin/env python #!/usr/bin/env python
# Copyright (c) 2004 Michael Pyne <michael.pyne@kdemail.net> # Copyright (c) 2004 Michael Pyne <michael.pyne@kdemail.net>
# Distributed under the terms of the GNU GPL v2, or any later version. # Distributed under the terms of the GNU GPL v2, or any later version.
# Script to auto-generate the configuration for kdecvs-build to use. # Script to auto-generate the configuration for kdesvn-build to use.
# See http://grammarian.homelinux.net/kdecvs-build/ # See http://grammarian.homelinux.net/kdesvn-build/
from qt import *; from qt import *;
import sys; import sys;
@ -28,17 +28,15 @@ modules = {
'kdeedu': { 'order': 4, 'conf': { } }, 'kdeedu': { 'order': 4, 'conf': { } },
'kdeaccessibility': { 'order': 4, 'conf': { } }, 'kdeaccessibility': { 'order': 4, 'conf': { } },
'valgrind': { 'order': 3, 'conf': { } }, 'valgrind': { 'order': 3, 'conf': { } },
'kdeextragear-1': { 'order': 5, 'conf': { } }, 'extragear/': { 'order': 5, 'conf': { } },
'kdeextragear-2': { 'order': 5, 'conf': { } }, 'playground/': { 'order': 5, 'conf': { } },
'kdeextragear-3': { 'order': 5, 'conf': { } },
'kdevelop': { 'order': 4, 'conf': { } }, 'kdevelop': { 'order': 4, 'conf': { } },
'kde-common': { 'order': 2, 'conf': { } }, 'kde-common': { 'order': 2, 'conf': { } },
'kde-i18n': { 'order': 3, 'conf': { } }, 'kde-i18n': { 'order': 3, 'conf': { } },
'kdeextragear-libs-1': { 'order': 4, 'conf': { } },
'kdewebdev': { 'order': 4, 'conf': { } }, 'kdewebdev': { 'order': 4, 'conf': { } },
'koffice': { 'order': 4, 'conf': { } }, 'koffice': { 'order': 4, 'conf': { } },
'kdebindings': { 'order': 4, 'conf': { } }, 'kdebindings': { 'order': 4, 'conf': { } },
'kdenonbeta': { 'order': 4, 'conf': { } }, #'kdenonbeta': { 'order': 4, 'conf': { } },
'kdesdk': { 'order': 5, 'conf': { } } 'kdesdk': { 'order': 5, 'conf': { } }
} }
@ -48,19 +46,18 @@ globals = {
'whatsthis': """This is the path that you can find your development 'whatsthis': """This is the path that you can find your development
toolchain in, including the <b>g++</b> and <b>make</b> programs. This toolchain in, including the <b>g++</b> and <b>make</b> programs. This
is specified by using colon (:) separated directories. Do not include is specified by using colon (:) separated directories. Do not include
any KDE or Qt paths, as kdecvs-build will add those automatically as any KDE or Qt paths, as kdesvn-build will add those automatically as
appropriate.""", appropriate.""",
'default': '/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin' 'default': '/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin'
}, },
'cvs-root': { 'source-dir': {
'description': 'Directory to hold CVS sources', 'description': 'Directory to hold KDE sources',
'whatsthis': """This is the directory to download the KDE sources into. 'whatsthis': """This is the directory to download the KDE sources into.
You may use the tilde (<b>~</b>) to stand for your home directory. No You may use the tilde (<b>~</b>) to stand for your home directory.""",
other variables are recognized.""", 'default': '~/kdesvn'
'default': '~/kdecvs'
}, },
'kdedir': { 'kdedir': {
'description': 'Directory to install KDE CVS into', 'description': 'Directory to install KDE into',
'whatsthis': """This is the directory that KDE will be installed to. 'whatsthis': """This is the directory that KDE will be installed to.
You may use the tilde (<b>~</b>) to stand for your home directory. If You may use the tilde (<b>~</b>) to stand for your home directory. If
you choose to install into a system directory, then you will probably you choose to install into a system directory, then you will probably
@ -71,22 +68,22 @@ globals = {
'qtdir': { 'qtdir': {
'description': 'Directory to Qt installation', 'description': 'Directory to Qt installation',
'whatsthis': """This is the directory of your Qt installation. If you 'whatsthis': """This is the directory of your Qt installation. If you
would like to use qt-copy from KDE CVS, check the checkbox <b>Use would like to use qt-copy from KDE Subversion, check the checkbox <b>Use
qt-copy from KDE CVS</b>.""", qt-copy from KDE Subversion</b>.""",
'default': os.environ.get('QTDIR', '~/kdecvs/qt-copy') 'default': os.environ.get('QTDIR', '~/kdesvn/build/qt-copy')
}, },
'cvs-server': { 'svn-server': {
'description': 'CVS Server to use', 'description': 'Subversion Server to use',
'whatsthis': """This is the CVS Root setting to use with the <b>cvs</b> 'whatsthis': """This is the CVS Root setting to use with the <b>cvs</b>
program. For more information, consult the manpage for the CVS program, program. For more information, consult the manpage for the CVS program,
or consult the CVS compilation guide from developer.kde.org""", or consult the CVS compilation guide from developer.kde.org""",
'default': ':pserver:anonymous@anoncvs.kde.org:/home/kde' 'default': 'svn://svn.kde.org/home/kde'
}, },
'conf-flags': { 'conf-flags': {
'description': 'Default configure flags', 'description': 'Default configure flags',
'whatsthis': """This is what configure flags you would like to pass to 'whatsthis': """This is what configure flags you would like to pass to
every CVS module (except for qt-copy). Use this to specify settings you every Subversion module (except for qt-copy). Use this to specify
want every module to have, such as --enable-debug""", settings you want every module to have, such as --enable-debug""",
'default': '--enable-debug' 'default': '--enable-debug'
}, },
'cxxflags': { 'cxxflags': {
@ -125,12 +122,12 @@ class WizardPage(QVBox):
class IntroPage(WizardPage): class IntroPage(WizardPage):
def __init__(self, wizard): def __init__(self, wizard):
WizardPage.__init__(self, wizard, "Introduction to kdecvs-build-wizard") WizardPage.__init__(self, wizard, "Introduction to kdesvn-build-wizard")
self.body = QLabel("""<qt><center>This wizard will help you setup a self.body = QLabel("""<qt><center>This wizard will help you setup a
basic configuration file for kdecvs-build. To continue, please click the basic configuration file for kdesvn-build. To continue, please click the
Next button.<br/><br/>NOTE: This isn't quite done yet, you'll have to copy Next button.<br/><br/>NOTE: This isn't quite done yet, you'll have to copy
and paste the file at the end to ~/.kdecvs-buildrc.</center></qt>""", self) and paste the file at the end to ~/.kdesvn-buildrc.</center></qt>""", self)
class DistributedPage(WizardPage): class DistributedPage(WizardPage):
def __init__(self, wizard): def __init__(self, wizard):
@ -291,11 +288,9 @@ class ModulesPage(WizardPage):
WizardPage.__init__(self, wizard, label) WizardPage.__init__(self, wizard, label)
defaultModules = [ 'arts', 'kdelibs', 'kdebase', 'kdesupport', 'kdepim', defaultModules = [ 'arts', 'kdelibs', 'kdebase', 'kdesupport', 'kdepim',
'kdegraphics', 'kdeextragear-2', 'kdeaddons', 'kdegraphics', 'kdeaddons', 'kdenetwork',
'kdeextragear-3', 'kdenetwork', 'kdegames', 'kdegames', 'kdeartwork', 'kdeutils',
'kdeartwork', 'kdeutils', 'kdemultimedia', 'kdemultimedia', 'kdetoys', 'kdeedu' ]
'kdetoys', 'kdeedu', 'kdeextragear-1',
'kdeextragear-libs-1']
requiredModules = [ 'arts', 'kdelibs' ] requiredModules = [ 'arts', 'kdelibs' ]
self.listview = QListView(self) self.listview = QListView(self)
@ -355,17 +350,14 @@ class ExtraModulesPage(ModulesPage):
def __init__(self, wizard): def __init__(self, wizard):
moduleDict = { moduleDict = {
'valgrind': 'Excellent program optimization/memory-leak-checker', 'valgrind': 'Excellent program optimization/memory-leak-checker',
'kdeextragear-1': 'Important KDE apps not yet part of KDE. Includes amarok, gwenview, and k3b',
'kdeextragear-2': 'Important KDE apps not yet part of KDE. Includes kimdaba, kmldonkey, and konversation',
'kdeextragear-3': 'Important KDE apps not yet part of KDE. Includes digikam, kconfigeditor, and kiosktool',
'kdevelop': 'Powerful Integrated Development Environment for developers', 'kdevelop': 'Powerful Integrated Development Environment for developers',
'kde-common': 'Code and data common to all of KDE', 'kde-common': 'Code and data common to all of KDE',
'extragear/': 'A collection of useful KDE applications, not yet part of KDE',
'playground/': 'KDE software which is undergoing development, and is currently at alpha-quality',
'kde-i18n': 'Language translations for KDE. This module is VERY LARGE', 'kde-i18n': 'Language translations for KDE. This module is VERY LARGE',
'kdeextragear-libs-1': 'Libraries required by some extragear programs',
'kdewebdev': 'Applications useful for web site developers. Includes Quanta and Kommander', 'kdewebdev': 'Applications useful for web site developers. Includes Quanta and Kommander',
'koffice': 'KDE Office Suite, includes word processor, spreadsheet, and more', 'koffice': 'KDE Office Suite, includes word processor, spreadsheet, and more',
'kdebindings': 'Bindings to allow programming Qt and/or KDE in languages other than C++', 'kdebindings': 'Bindings to allow programming Qt and/or KDE in languages other than C++',
'kdenonbeta': 'Smorgasbord of KDE-related applications. This module is VERY LARGE',
'kdesdk': 'Collection of applications to ease the job of KDE developers' 'kdesdk': 'Collection of applications to ease the job of KDE developers'
} }
@ -444,15 +436,15 @@ class GeneratePage(WizardPage):
box.setSpacing(6) box.setSpacing(6)
label = QLabel("&Filename", box) label = QLabel("&Filename", box)
self.browseLine = QLineEdit("~/.kdecvs-buildrc", box) self.browseLine = QLineEdit("~/.kdesvn-buildrc", box)
label.setBuddy(self.browseLine) label.setBuddy(self.browseLine)
browseButton = QPushButton("&Save As...", box) browseButton = QPushButton("&Save As...", box)
self.connect (browseButton, SIGNAL("clicked()"), self.connect (browseButton, SIGNAL("clicked()"),
self.browseClicked) self.browseClicked)
def browseClicked(self): def browseClicked(self):
fileName = QFileDialog.getSaveFileName(os.environ['HOME'] + "/.kdecvs-buildrc", fileName = QFileDialog.getSaveFileName(os.environ['HOME'] + "/.kdesvn-buildrc",
QString.null, self, "kdecvs-pywizard-filesave-dialog") QString.null, self, "kdesvn-pywizard-filesave-dialog")
if not fileName.isNull(): if not fileName.isNull():
print "Setting filename to " + str(fileName) print "Setting filename to " + str(fileName)
self.browseLine.setText(str(fileName)) self.browseLine.setText(str(fileName))

Loading…
Cancel
Save