Support alternative path for building.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackware-id.org>
This commit is contained in:
Willy Sudiarto Raharjo 2016-03-25 20:42:24 +07:00
parent bc6408219b
commit 58d863e95c
3 changed files with 9 additions and 6 deletions

View file

@ -31,7 +31,8 @@
INST=1
# This is where all the compilation and final results will be placed
TMP=${TMP:-/tmp}
TMP=${TMP:-/tmp/msb}
OUTPUT=${OUTPUT:-/tmp}
# This is the original directory where you started this script
MSBROOT=$(pwd)
@ -85,7 +86,7 @@ for dir in \
fi
# The real build starts here
sh ${package}.SlackBuild || exit 1
TMP=$TMP OUTPUT=$OUTPUT sh ${package}.SlackBuild || exit 1
if [ "$INST" = "1" ]; then
PACKAGE=$(ls $TMP/${package}-${version}-*-${build}*.txz 2>/dev/null)
if [ -f "$PACKAGE" ]; then

View file

@ -30,7 +30,8 @@
INST=1
# This is where all the compilation and final results will be placed
TMP=${TMP:-/tmp}
TMP=${TMP:-/tmp/msb}
OUTPUT=${OUTPUT:-/tmp}
# This is the original directory where you started this script
MSBROOT=$(pwd)
@ -80,7 +81,7 @@ for dir in \
fi
# The real build starts here
sh ${package}.SlackBuild || exit 1
TMP=$TMP OUTPUT=$OUTPUT sh ${package}.SlackBuild || exit 1
if [ "$INST" = "1" ]; then
PACKAGE=$(ls $TMP/${package}-${version}-*-${build}*.txz 2>/dev/null)
if [ -f "$PACKAGE" ]; then

View file

@ -31,7 +31,8 @@
INST=1
# This is where all the compilation and final results will be placed
TMP=${TMP:-/tmp}
TMP=${TMP:-/tmp/msb}
OUTPUT=${OUTPUT:-/tmp}
# This is the original directory where you started this script
MSBROOT=$(pwd)
@ -74,7 +75,7 @@ for dir in \
fi
# The real build starts here
sh ${package}.SlackBuild || exit 1
TMP=$TMP OUTPUT=$OUTPUT sh ${package}.SlackBuild || exit 1
if [ "$INST" = "1" ]; then
PACKAGE=$(ls $TMP/${package}-${version}-*-${build}*.txz 2>/dev/null)
if [ -f "$PACKAGE" ]; then