mirror of
https://gitlab.com/CinnamonSlackBuilds/csb.git
synced 2024-12-26 21:59:28 +01:00
Fix build script.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackware-id.org>
This commit is contained in:
parent
e0e9e7da82
commit
535e6127fb
1 changed files with 4 additions and 4 deletions
|
@ -91,7 +91,7 @@ for dir in \
|
|||
cd $CSBROOT/$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)
|
||||
|
@ -108,9 +108,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