Added prepare step.
Introduced a prepare step for the sources which can be specified by defining the src_prepare function. e.g. to use patches. The src_prepare function will be called in the $SRCDIR. example: src_prepare() { patch -p1 < ${SRC_POOL}/my_src.patch }
This commit is contained in:
parent
a733363f1e
commit
065c8a9ac5
2 changed files with 13 additions and 1 deletions
11
functions.sh
11
functions.sh
|
@ -47,6 +47,17 @@ sit_unpack() {
|
|||
src_unpack
|
||||
}
|
||||
|
||||
|
||||
src_prepare() {
|
||||
/bin/true
|
||||
}
|
||||
sit_prepare() {
|
||||
sit_info "Preparing sources"
|
||||
cd ${SRCDIR}
|
||||
src_prepare || sit_fail "Preparing sources failed"
|
||||
}
|
||||
|
||||
|
||||
src_configure() {
|
||||
${SRCDIR}/configure --prefix=$PREFIX $CONFIGURE_OPTS
|
||||
if [ ! -z $LOGDIR ] ; then
|
||||
|
|
3
sit
3
sit
|
@ -142,7 +142,8 @@ mkdir -p ${WORKDIR}
|
|||
mkdir -p ${BUILDDIR}
|
||||
mkdir -p ${LOGDIR}
|
||||
|
||||
sit_unpack; 2>&1 | tee "$LOGDIR/unpack.log"; ( exit ${PIPESTATUS} )
|
||||
sit_unpack 2>&1 | tee "$LOGDIR/unpack.log"; ( exit ${PIPESTATUS} )
|
||||
sit_prepare 2>&1 | tee "$LOGDIR/prepare.log"; ( exit ${PIPESTATUS} )
|
||||
sit_configure 2>&1 | tee "$LOGDIR/configure.log"; ( exit ${PIPESTATUS} )
|
||||
sit_build 2>&1 | tee "$LOGDIR/make.log"; ( exit ${PIPESTATUS} )
|
||||
sit_pretest 2>&1 | tee "$LOGDIR/pretest.log"; ( exit ${PIPESTATUS} )
|
||||
|
|
Loading…
Reference in a new issue