mirror of
https://gitlab.com/mateslackbuilds/msb.git
synced 2025-01-13 08:01:08 +01:00
Update Build Script.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackware-id.org>
This commit is contained in:
parent
33774b0fcf
commit
3386a60562
2 changed files with 12 additions and 12 deletions
|
@ -64,10 +64,10 @@ for dir in \
|
||||||
base/mate-themes \
|
base/mate-themes \
|
||||||
; do
|
; do
|
||||||
# Get the package name
|
# Get the package name
|
||||||
package=$(echo $dir | cut -f2- -d /)
|
package=$(echo $dir | cut -f2- -d /)
|
||||||
|
|
||||||
# Change to package directory
|
# Change to package directory
|
||||||
cd $MSBROOT/$dir || exit 1
|
cd $MSBROOT/$dir || exit 1
|
||||||
|
|
||||||
# Get the version
|
# Get the version
|
||||||
version=$(cat ${package}.SlackBuild | grep "VERSION:" | cut -d "-" -f2 | rev | cut -c 2- | rev)
|
version=$(cat ${package}.SlackBuild | grep "VERSION:" | cut -d "-" -f2 | rev | cut -c 2- | rev)
|
||||||
|
@ -83,11 +83,11 @@ for dir in \
|
||||||
echo "Please delete sources other than ${package}-$version to avoid problems"
|
echo "Please delete sources other than ${package}-$version to avoid problems"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# 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="${package}-$version-${build}*.txz"
|
PACKAGE="${package}-$version-*-${build}*.txz"
|
||||||
if [ -f $TMP/$PACKAGE ]; then
|
if [ -f $TMP/$PACKAGE ]; then
|
||||||
upgradepkg --install-new --reinstall $TMP/$PACKAGE
|
upgradepkg --install-new --reinstall $TMP/$PACKAGE
|
||||||
else
|
else
|
||||||
|
@ -95,7 +95,7 @@ for dir in \
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# back to original directory
|
# back to original directory
|
||||||
cd $MSBROOT
|
cd $MSBROOT
|
||||||
done
|
done
|
||||||
|
|
|
@ -78,10 +78,10 @@ for dir in \
|
||||||
extra/mate-screensaver \
|
extra/mate-screensaver \
|
||||||
; do
|
; do
|
||||||
# Get the package name
|
# Get the package name
|
||||||
package=$(echo $dir | cut -f2- -d /)
|
package=$(echo $dir | cut -f2- -d /)
|
||||||
|
|
||||||
# Change to package directory
|
# Change to package directory
|
||||||
cd $MSBROOT/$dir || exit 1
|
cd $MSBROOT/$dir || exit 1
|
||||||
|
|
||||||
# Get the version
|
# Get the version
|
||||||
version=$(cat ${package}.SlackBuild | grep "VERSION:" | cut -d "-" -f2 | rev | cut -c 2- | rev)
|
version=$(cat ${package}.SlackBuild | grep "VERSION:" | cut -d "-" -f2 | rev | cut -c 2- | rev)
|
||||||
|
@ -97,11 +97,11 @@ for dir in \
|
||||||
echo "Please delete sources other than ${package}-$version to avoid problems"
|
echo "Please delete sources other than ${package}-$version to avoid problems"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# 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="${package}-$version-${build}*.txz"
|
PACKAGE="${package}-$version-*-${build}*.txz"
|
||||||
if [ -f $TMP/$PACKAGE ]; then
|
if [ -f $TMP/$PACKAGE ]; then
|
||||||
upgradepkg --install-new --reinstall $TMP/$PACKAGE
|
upgradepkg --install-new --reinstall $TMP/$PACKAGE
|
||||||
else
|
else
|
||||||
|
@ -109,7 +109,7 @@ for dir in \
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# back to original directory
|
# back to original directory
|
||||||
cd $MSBROOT
|
cd $MSBROOT
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue