add ability to have the build process take place in a terminal instead of the dialog interface by setting a new variable, TERMBUILD=YES in sbopkg.conf; TERMBUILD will be set to NO as a default when packages; many thanks to Erik Hanson for raising this issue and providing patches and code to make it work.

This commit is contained in:
chess.griffin 2008-08-29 01:18:27 +00:00
parent f245e06e81
commit 867f44e4b9
2 changed files with 10 additions and 4 deletions

View file

@ -13,6 +13,7 @@ LOCALREPO=${LOCALREPO:-/home/sbo}
SRCDIR=${SRCDIR:-/var/cache/sbopkg}
export TMP=${TMP:-/tmp/SBo}
KEEPLOG=YES
TERMBUILD=YES
# Optional - the $OUTPUT variable is used by SlackBuild scripts only
# and can be used to change the output location of compiled packages.

View file

@ -464,11 +464,16 @@ as the root user in order to build packages." 8 30
fi
rm -rf $TMP/sbopkg_build.lck
touch $TMP/sbopkg_build.lck
( build_package $APP >> $SBOPKGOUTPUT & ) 2>>$SBOPKGOUTPUT
while [ -f $TMP/sbopkg_build.lck ]; do
dialog --backtitle "Building the $APP package." \
if [ "$TERMBUILD" = "YES" ]; then
build_package $APP | tee $SBOPKGOUTPUT
read -n 1 -p "Press any key to continue."
else
( build_package $APP >> $SBOPKGOUTPUT & ) 2>>$SBOPKGOUTPUT
while [ -f $TMP/sbopkg_build.lck ]; do
dialog --backtitle "Building the $APP package." \
--tailbox $SBOPKGOUTPUT 20 70
done
done
fi
if [ "$KEEPLOG" = "YES" ]; then
cat $SBOPKGOUTPUT >> $TMP/sbopkg-build-log
fi