mirror of
https://github.com/sbopkg/sbopkg
synced 2024-11-09 19:50:25 +03:00
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:
parent
f245e06e81
commit
867f44e4b9
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user