New sit_cmd.log logfile containing sit call and environment info.

This commit is contained in:
Christoph Niethammer 2011-08-19 09:18:16 +00:00
parent b68a098079
commit a3bc2e95ee
2 changed files with 20 additions and 1 deletions

View file

@ -125,4 +125,22 @@ sit_setperms() {
src_setperms || sit_fail "Could not set permissions"
}
sit_sitinfo() {
local SIT_VERSION="unknown"
if [ "$(svnversion $SIT_PATH)" != "exported" ] ; then
sit_info "SVN"
SIT_VERSION="svn-r$(svnversion $SIT_PATH)"
elif [ git svn find-rev r1 ] ; then
sit_info "GIT"
SIT_VERSION="$(cd $SIT_PATH; git svn find-rev HEAD) (git svn)";
else
SIT_VERSION="unknown"
fi
echo "Invocation: $(ps --pid $$ -o cmd | tail -n 1)"
echo "Started: $(date)"
echo "Version: $SIT_VERSION"
echo "Environment:"
echo "------------------------------------------------------------------------------"
env
echo "------------------------------------------------------------------------------"
}

1
sit
View file

@ -166,6 +166,7 @@ mkdir -p ${WORKDIR}
mkdir -p ${BUILDDIR}
mkdir -p ${LOGDIR}
sit_sitinfo >> "$LOGDIR/sit_cmd.log"
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} )