Update Build Script.

Avoid confusion when building with other projects (eg CSB).

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackware-id.org>
This commit is contained in:
Willy Sudiarto Raharjo 2016-07-05 12:54:12 +07:00
parent 0e8a6cccc1
commit 609df3e44e
No known key found for this signature in database
GPG key ID: 887B8374D7333381
4 changed files with 4 additions and 4 deletions

View file

@ -93,7 +93,7 @@ for dir in \
# The real build starts here # The real build starts here
TMP=$TMP OUTPUT=$OUTPUT sh ${package}.SlackBuild || exit 1 TMP=$TMP OUTPUT=$OUTPUT sh ${package}.SlackBuild || exit 1
if [ "$INST" = "1" ]; then if [ "$INST" = "1" ]; then
PACKAGE=$(ls $OUTPUT/${package}-${version}-*-${build}*.txz 2>/dev/null) PACKAGE=$(ls $OUTPUT/${package}-${version}-*-${build}*msb.txz 2>/dev/null)
if [ -f "$PACKAGE" ]; then if [ -f "$PACKAGE" ]; then
upgradepkg --install-new --reinstall "$PACKAGE" upgradepkg --install-new --reinstall "$PACKAGE"
else else

View file

@ -88,7 +88,7 @@ for dir in \
# The real build starts here # The real build starts here
TMP=$TMP OUTPUT=$OUTPUT sh ${package}.SlackBuild || exit 1 TMP=$TMP OUTPUT=$OUTPUT sh ${package}.SlackBuild || exit 1
if [ "$INST" = "1" ]; then if [ "$INST" = "1" ]; then
PACKAGE=$(ls $OUTPUT/${package}-${version}-*-${build}*.txz 2>/dev/null) PACKAGE=$(ls $OUTPUT/${package}-${version}-*-${build}*msb.txz 2>/dev/null)
if [ -f "$PACKAGE" ]; then if [ -f "$PACKAGE" ]; then
upgradepkg --install-new --reinstall "$PACKAGE" upgradepkg --install-new --reinstall "$PACKAGE"
else else

View file

@ -79,7 +79,7 @@ for dir in \
# The real build starts here # The real build starts here
TMP=$TMP OUTPUT=$OUTPUT sh ${package}.SlackBuild || exit 1 TMP=$TMP OUTPUT=$OUTPUT sh ${package}.SlackBuild || exit 1
if [ "$INST" = "1" ]; then if [ "$INST" = "1" ]; then
PACKAGE=$(ls $OUTPUT/${package}-${version}-*-${build}*.txz 2>/dev/null) PACKAGE=$(ls $OUTPUT/${package}-${version}-*-${build}*msb.txz 2>/dev/null)
if [ -f "$PACKAGE" ]; then if [ -f "$PACKAGE" ]; then
upgradepkg --install-new --reinstall "$PACKAGE" upgradepkg --install-new --reinstall "$PACKAGE"
else else

View file

@ -74,7 +74,7 @@ for dir in \
# The real build starts here # The real build starts here
sh ${package}.SlackBuild || exit 1 sh ${package}.SlackBuild || exit 1
if [ "$INST" = "1" ]; then if [ "$INST" = "1" ]; then
PACKAGE=`ls $TMP/${package}-${version}-*-${build}*.txz` PACKAGE=`ls $TMP/${package}-${version}-*-${build}*msb.txz`
if [ -f "$PACKAGE" ]; then if [ -f "$PACKAGE" ]; then
upgradepkg --install-new --reinstall "$PACKAGE" upgradepkg --install-new --reinstall "$PACKAGE"
else else