mirror of
https://github.com/getsolus/packages.git
synced 2025-05-06 10:54:54 +03:00
common: Scripts/rebuild-template-script: Add kf_update function
For updating all kdeframeworks package versions at once
This commit is contained in:
parent
4e69e465bd
commit
4ca307e06a
1 changed files with 26 additions and 0 deletions
|
@ -375,6 +375,32 @@ checkDeleteCache() {
|
|||
fi
|
||||
}
|
||||
|
||||
# Update all kdeframeworks packages
|
||||
kf_update() {
|
||||
if [[ -z "${KF_VERSION}" ]]; then
|
||||
echo -e "${ERROR} Set KF_VERSION first e.g 1.108.0 ${NC}"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
a=( ${KF_VERSION//./ } )
|
||||
KF_VERSION_MAJOR="${a[0]}.${a[1]}"
|
||||
|
||||
pushd ~/rebuilds/${MAINPAK}
|
||||
for i in ${PACKAGES}
|
||||
do
|
||||
pushd ${i}
|
||||
if yupdate ${KF_VERSION} https://cdn.download.kde.org/stable/frameworks/${KF_VERSION_MAJOR}/${i}-${KF_VERSION}.tar.xz; then
|
||||
echo "success"
|
||||
elif yupdate ${KF_VERSION} https://cdn.download.kde.org/stable/frameworks/${KF_VERSION_MAJOR}/portingAids/${i}-${KF_VERSION}.tar.xz; then
|
||||
echo "success"
|
||||
else
|
||||
echo "not found"
|
||||
exit 1
|
||||
fi
|
||||
popd
|
||||
done
|
||||
}
|
||||
|
||||
# Display Help
|
||||
Help() {
|
||||
cat << EOF
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue