mirror of
https://gitlab.com/mateslackbuilds/msb.git
synced 2024-12-28 09:58:29 +01:00
Add option for source checking (default: OFF).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackware-id.org>
This commit is contained in:
parent
49a59b0b52
commit
d7f382d0e0
4 changed files with 48 additions and 28 deletions
|
@ -37,6 +37,9 @@ OUTPUT=${OUTPUT:-/tmp}
|
||||||
# This is the original directory where you started this script
|
# This is the original directory where you started this script
|
||||||
MSBROOT=$(pwd)
|
MSBROOT=$(pwd)
|
||||||
|
|
||||||
|
# Check for duplicate sources (default: OFF)
|
||||||
|
CHECKDUPLICATE=0
|
||||||
|
|
||||||
# Loop for all base packages
|
# Loop for all base packages
|
||||||
for dir in \
|
for dir in \
|
||||||
base/mate-common \
|
base/mate-common \
|
||||||
|
@ -76,6 +79,7 @@ for dir in \
|
||||||
# Get the build
|
# Get the build
|
||||||
build=$(cat ${package}.SlackBuild | grep "BUILD:" | cut -d "-" -f2 | rev | cut -c 2- | rev)
|
build=$(cat ${package}.SlackBuild | grep "BUILD:" | cut -d "-" -f2 | rev | cut -c 2- | rev)
|
||||||
|
|
||||||
|
if [ $CHECKDUPLICATE -eq 1 ]; then
|
||||||
# Check for duplicate sources
|
# Check for duplicate sources
|
||||||
sourcefile="$(ls -l $MSBROOT/$dir/${package}-*.tar.?z* 2>/dev/null | wc -l)"
|
sourcefile="$(ls -l $MSBROOT/$dir/${package}-*.tar.?z* 2>/dev/null | wc -l)"
|
||||||
if [ $sourcefile -gt 1 ]; then
|
if [ $sourcefile -gt 1 ]; then
|
||||||
|
@ -84,6 +88,7 @@ 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
|
||||||
|
fi
|
||||||
|
|
||||||
# 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
|
||||||
|
|
|
@ -36,6 +36,9 @@ OUTPUT=${OUTPUT:-/tmp}
|
||||||
# This is the original directory where you started this script
|
# This is the original directory where you started this script
|
||||||
MSBROOT=$(pwd)
|
MSBROOT=$(pwd)
|
||||||
|
|
||||||
|
# Check for duplicate sources (default: OFF)
|
||||||
|
CHECKDUPLICATE=0
|
||||||
|
|
||||||
# Loop for all dependency packages
|
# Loop for all dependency packages
|
||||||
for dir in \
|
for dir in \
|
||||||
deps/zenity \
|
deps/zenity \
|
||||||
|
@ -68,6 +71,7 @@ for dir in \
|
||||||
# Get the build
|
# Get the build
|
||||||
build=$(cat ${package}.SlackBuild | grep "BUILD:" | cut -d "-" -f2 | rev | cut -c 2- | rev)
|
build=$(cat ${package}.SlackBuild | grep "BUILD:" | cut -d "-" -f2 | rev | cut -c 2- | rev)
|
||||||
|
|
||||||
|
if [ $CHECKDUPLICATE -eq 1 ]; then
|
||||||
# Check for duplicate sources
|
# Check for duplicate sources
|
||||||
sourcefile="$(ls -l $MSBROOT/$dir/${package}-*.tar.?z* 2>/dev/null | wc -l)"
|
sourcefile="$(ls -l $MSBROOT/$dir/${package}-*.tar.?z* 2>/dev/null | wc -l)"
|
||||||
if [ $sourcefile -gt 1 ]; then
|
if [ $sourcefile -gt 1 ]; then
|
||||||
|
@ -76,6 +80,7 @@ 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
|
||||||
|
fi
|
||||||
|
|
||||||
# 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
|
||||||
|
|
|
@ -37,6 +37,9 @@ OUTPUT=${OUTPUT:-/tmp}
|
||||||
# This is the original directory where you started this script
|
# This is the original directory where you started this script
|
||||||
MSBROOT=$(pwd)
|
MSBROOT=$(pwd)
|
||||||
|
|
||||||
|
# Check for duplicate sources (default: OFF)
|
||||||
|
CHECKDUPLICATE=0
|
||||||
|
|
||||||
# Loop for all extra packages
|
# Loop for all extra packages
|
||||||
for dir in \
|
for dir in \
|
||||||
extra/galculator \
|
extra/galculator \
|
||||||
|
@ -62,6 +65,7 @@ for dir in \
|
||||||
# Get the build
|
# Get the build
|
||||||
build=$(cat ${package}.SlackBuild | grep "BUILD:" | cut -d "-" -f2 | rev | cut -c 2- | rev)
|
build=$(cat ${package}.SlackBuild | grep "BUILD:" | cut -d "-" -f2 | rev | cut -c 2- | rev)
|
||||||
|
|
||||||
|
if [ $CHECKDUPLICATE -eq 1 ]; then
|
||||||
# Check for duplicate sources
|
# Check for duplicate sources
|
||||||
sourcefile="$(ls -l $MSBROOT/$dir/${package}-*.tar.?z* 2>/dev/null | wc -l)"
|
sourcefile="$(ls -l $MSBROOT/$dir/${package}-*.tar.?z* 2>/dev/null | wc -l)"
|
||||||
if [ $sourcefile -gt 1 ]; then
|
if [ $sourcefile -gt 1 ]; then
|
||||||
|
@ -70,6 +74,7 @@ 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
|
||||||
|
fi
|
||||||
|
|
||||||
# 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
|
||||||
|
|
|
@ -36,6 +36,9 @@ TMP=${TMP:-/tmp}
|
||||||
# This is the original directory where you started this script
|
# This is the original directory where you started this script
|
||||||
MSBROOT=$(pwd)
|
MSBROOT=$(pwd)
|
||||||
|
|
||||||
|
# Check for duplicate sources (default: OFF)
|
||||||
|
CHECKDUPLICATE=0
|
||||||
|
|
||||||
# Loop for all packages
|
# Loop for all packages
|
||||||
for dir in \
|
for dir in \
|
||||||
yelp \
|
yelp \
|
||||||
|
@ -58,6 +61,7 @@ for dir in \
|
||||||
# Get the build
|
# Get the build
|
||||||
build=$(cat ${package}.SlackBuild | grep "BUILD:" | cut -d "-" -f2 | rev | cut -c 2- | rev)
|
build=$(cat ${package}.SlackBuild | grep "BUILD:" | cut -d "-" -f2 | rev | cut -c 2- | rev)
|
||||||
|
|
||||||
|
if [ $CHECKDUPLICATE -eq 1 ]; then
|
||||||
# Check for duplicate sources
|
# Check for duplicate sources
|
||||||
sourcefile="$(ls -l $MSBROOT/$dir/${package}-*.tar.?z* | wc -l)"
|
sourcefile="$(ls -l $MSBROOT/$dir/${package}-*.tar.?z* | wc -l)"
|
||||||
if [ $sourcefile -gt 1 ]; then
|
if [ $sourcefile -gt 1 ]; then
|
||||||
|
@ -66,6 +70,7 @@ 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
|
||||||
|
fi
|
||||||
|
|
||||||
# The real build starts here
|
# The real build starts here
|
||||||
sh ${package}.SlackBuild || exit 1
|
sh ${package}.SlackBuild || exit 1
|
||||||
|
|
Loading…
Reference in a new issue