Skip to content

Commit

Permalink
Add an examle chain config.
Browse files Browse the repository at this point in the history
  • Loading branch information
alenz33 committed Mar 20, 2015
1 parent a14e37c commit ac69a6b
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions etc/chains/compile_autotools.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# *****************************************************************************
# conduct - CONvenient Construction Tool
#
# 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.
#
# This program 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
# this program; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# Module authors:
# Alexander Lenz <alexander.lenz@posteo.de>
#
# *****************************************************************************

'''
Simple chain to compile software thats build is based on autotools.
'''

parameters = {
'sourcedir' : Parameter(type=str,
description='Path to the source directory'),
}

steps = {
'autogen' : BuildStep('conduct.SystemCallStep',
description='Generate configure via autogen.sh',
workingdir=params.sourcedir,
command='./autogen.sh',
),
'configure' : BuildStep('conduct.SystemCallStep',
description='Execute configure script',
workingdir=params.sourcedir,
command='./configure',
),
'make' : BuildStep('conduct.SystemCallStep',
description='Build software via make',
workingdir=params.sourcedir,
command='make',
),

This comment has been minimized.

Copy link
@birkenfeld

birkenfeld Mar 21, 2015

Contributor

how are the build steps ordered? the dictionary has no order...

This comment has been minimized.

Copy link
@alenz33

alenz33 Mar 22, 2015

Author Owner

@birkenfeld
The dict should get an OrderedDict later.
Additionally, there will be a way to define a custom function (within the chain config) that controls the execution of build steps (which makes it possible to integrate conditions etc easily).

}

0 comments on commit ac69a6b

Please sign in to comment.