From 5f6afe13b42910e42ecd0613d447b50536a6de03 Mon Sep 17 00:00:00 2001 From: Elke Flehmig Date: Mon, 17 Jun 2013 07:44:20 +0000 Subject: [PATCH] added sit_postinst for final messages etc. after installation is finished --- functions.sh | 22 ++++++++++++++++------ sit | 1 + 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/functions.sh b/functions.sh index 54ad878..3d8bc81 100644 --- a/functions.sh +++ b/functions.sh @@ -97,6 +97,16 @@ sit_pretest() { } +src_install() { + make install +} +sit_install() { + sit_info "Installing package ..." + cd ${BUILDDIR} + src_install || sit_fail "Install failed" +} + + src_posttest() { /bin/true } @@ -107,15 +117,15 @@ sit_posttest() { } -src_install() { - make install +src_postinst() { +/bin/true } -sit_install() { - sit_info "Installing package ..." - cd ${BUILDDIR} - src_install || sit_fail "Install failed" + +sit_postinst() { + src_postinst || sit_fail "Post installation failed" } + sit_copy_logs() { if [ ! -z $LOGDIR ] ; then cd $LOGDIR diff --git a/sit b/sit index 5d210ea..3f0319e 100755 --- a/sit +++ b/sit @@ -189,6 +189,7 @@ sit_build 2>&1 | tee "$LOGDIR/make.log"; ( exit ${PIPESTATUS[0]} ) sit_pretest 2>&1 | tee "$LOGDIR/pretest.log"; ( exit ${PIPESTATUS[0]} ) sit_install 2>&1 | tee "$LOGDIR/make_install.log"; ( exit ${PIPESTATUS[0]} ) sit_posttest 2>&1 | tee "$LOGDIR/posttest.log"; ( exit ${PIPESTATUS[0]} ) +sit_postinst 2>&1 | tee "$LOGDIR/postinst.log"; ( exit ${PIPESTATUS[0]} ) sit_copy_logs sit_setperms