#
# Copyright (c) 2004 Specifix, Inc.
# All rights reserved
#
import os
import shutil
import util

class Make:

    def doBuild(self, dir):
	os.system("cd %s; make" % dir)

class MakeInstall:

    def doInstall(self, dir, root):
	os.system("cd %s; make %s=%s install" % (dir, self.rootVar, root))

    def __init__(self, rootVar = "DESTDIR"):
	self.rootVar = rootVar

class InstallFile:

    def doInstall(self, dir, root):
	dest = root + self.toFile
	util.mkdirChain(os.path.dirname(dest))

	shutil.copyfile(self.toFile, dest)
	os.chmod(dest, self.mode)

    def __init__(self, fromFile, toFile, perms = 0644):
	self.toFile = toFile
	self.file = fromFile
	self.mode = perms

@@ -92,16 +92,424 @@
 t util%0A%0A
+class ManualConfigure:%0A%0A    def doBuild(self, dir):%0A%09os.system(%22cd %25s; ./configure %25s%22 %25 (dir, self.extraflags))%0A%0A    def __init__(self, extraflags=%22%22):%0A        self.extraflags = extraflags%0A%0Aclass Configure:%0A%0A    def doBuild(self, dir):%0A%09os.system(%22cd %25s; ./configure --prefix=/usr --sysconfdir=/etc %25s%22 %25 (dir, self.extraflags))%0A%0A    def __init__(self, extraflags=%22%22):%0A        self.extraflags = extraflags%0A%0A
 class Ma

Add classes to run ./configure