mirror of
https://gitlab.com/mateslackbuilds/msb.git
synced 2025-01-13 08:01:08 +01:00
Fix build script.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackware-id.org>
This commit is contained in:
parent
a8794f6c6f
commit
0ae129a779
3 changed files with 12 additions and 12 deletions
|
@ -68,7 +68,7 @@ for dir in \
|
|||
cd $MSBROOT/$dir || exit 1
|
||||
|
||||
# Get the version
|
||||
version=$(cat ${package}.SlackBuild | grep "VERSION:" | cut -d "-" -f2 | rev | cut -c 2- | rev)
|
||||
version=$(cat ${package}.SlackBuild | grep "VERSION:" | head -n1 | cut -d "-" -f2 | rev | cut -c 2- | rev)
|
||||
|
||||
# Get the build
|
||||
build=$(cat ${package}.SlackBuild | grep "BUILD:" | cut -d "-" -f2 | rev | cut -c 2- | rev)
|
||||
|
@ -85,9 +85,9 @@ for dir in \
|
|||
# The real build starts here
|
||||
sh ${package}.SlackBuild || exit 1
|
||||
if [ "$INST" = "1" ]; then
|
||||
PACKAGE="${package}-$version-*-${build}*.txz"
|
||||
if [ -f $TMP/$PACKAGE ]; then
|
||||
upgradepkg --install-new --reinstall $TMP/$PACKAGE
|
||||
PACKAGE=`ls $TMP/${package}-${version}-*-${build}*.txz`
|
||||
if [ -f "$PACKAGE" ]; then
|
||||
upgradepkg --install-new --reinstall "$PACKAGE"
|
||||
else
|
||||
echo "Error: package to upgrade "$PACKAGE" not found in $TMP"
|
||||
exit 1
|
||||
|
|
|
@ -74,7 +74,7 @@ for dir in \
|
|||
cd $MSBROOT/$dir || exit 1
|
||||
|
||||
# Get the version
|
||||
version=$(cat ${package}.SlackBuild | grep "VERSION:" | cut -d "-" -f2 | rev | cut -c 2- | rev)
|
||||
version=$(cat ${package}.SlackBuild | grep "VERSION:" | head -n1 | cut -d "-" -f2 | rev | cut -c 2- | rev)
|
||||
|
||||
# Get the build
|
||||
build=$(cat ${package}.SlackBuild | grep "BUILD:" | cut -d "-" -f2 | rev | cut -c 2- | rev)
|
||||
|
@ -91,9 +91,9 @@ for dir in \
|
|||
# The real build starts here
|
||||
sh ${package}.SlackBuild || exit 1
|
||||
if [ "$INST" = "1" ]; then
|
||||
PACKAGE="${package}-$version-*-${build}*.txz"
|
||||
if [ -f $TMP/$PACKAGE ]; then
|
||||
upgradepkg --install-new --reinstall $TMP/$PACKAGE
|
||||
PACKAGE=`ls $TMP/${package}-${version}-*-${build}*.txz`
|
||||
if [ -f "$PACKAGE" ]; then
|
||||
upgradepkg --install-new --reinstall "$PACKAGE"
|
||||
else
|
||||
echo "Error: package to upgrade "$PACKAGE" not found in $TMP"
|
||||
exit 1
|
||||
|
|
|
@ -61,7 +61,7 @@ for dir in \
|
|||
cd $MSBROOT/$dir || exit 1
|
||||
|
||||
# Get the version
|
||||
version=$(cat ${package}.SlackBuild | grep "VERSION:" | cut -d "-" -f2 | rev | cut -c 2- | rev)
|
||||
version=$(cat ${package}.SlackBuild | grep "VERSION:" | head -n1 | cut -d "-" -f2 | rev | cut -c 2- | rev)
|
||||
|
||||
# Get the build
|
||||
build=$(cat ${package}.SlackBuild | grep "BUILD:" | cut -d "-" -f2 | rev | cut -c 2- | rev)
|
||||
|
@ -78,9 +78,9 @@ for dir in \
|
|||
# The real build starts here
|
||||
sh ${package}.SlackBuild || exit 1
|
||||
if [ "$INST" = "1" ]; then
|
||||
PACKAGE="${package}-$version-*-${build}*.txz"
|
||||
if [ -f $TMP/$PACKAGE ]; then
|
||||
upgradepkg --install-new --reinstall $TMP/$PACKAGE
|
||||
PACKAGE=`ls $TMP/${package}-${version}-*-${build}*.txz`
|
||||
if [ -f "$PACKAGE" ]; then
|
||||
upgradepkg --install-new --reinstall "$PACKAGE"
|
||||
else
|
||||
echo "Error: package to upgrade "$PACKAGE" not found in $TMP"
|
||||
exit 1
|
||||
|
|
Loading…
Reference in a new issue