scons için trivial pisi api'ı.. daha bakacağız..
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Copyright (C) 2005, TUBITAK/UEKAE
|
||||
#
|
||||
# This program 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 of the License, or (at your option)
|
||||
# any later version.
|
||||
#
|
||||
# Please read the COPYING file.
|
||||
|
||||
|
||||
# Pisi Modules
|
||||
import pisi.context as ctx
|
||||
|
||||
# ActionsAPI Modules
|
||||
from pisi.actionsapi.shelltools import system
|
||||
|
||||
|
||||
class MakeError(pisi.actionsapi.Error):
|
||||
def __init__(self, Exception):
|
||||
ctx.ui.error(Exception)
|
||||
|
||||
class InstallError(pisi.actionsapi.Error):
|
||||
def __init__(self, Exception):
|
||||
ctx.ui.error(Exception)
|
||||
|
||||
def make(parameters = ''):
|
||||
if system("scons %s", % parameters):
|
||||
raise MakeError('!!! Make failed...\n')
|
||||
|
||||
def install(parameters = 'install'):
|
||||
if system("scons %s", % parameters):
|
||||
raise InstallError('!!! Install failed...\n')
|
||||
Reference in New Issue
Block a user