forked from mirrors/nixpkgs
mate: update the update script for version 1.22
This commit is contained in:
parent
97d35b251b
commit
3652406597
|
@ -7,7 +7,7 @@ cd "$(dirname "${BASH_SOURCE[0]}")"
|
||||||
root=../../..
|
root=../../..
|
||||||
export NIXPKGS_ALLOW_UNFREE=1
|
export NIXPKGS_ALLOW_UNFREE=1
|
||||||
|
|
||||||
mate_version=1.20
|
mate_version=1.22
|
||||||
theme_version=3.22
|
theme_version=3.22
|
||||||
materepo=https://pub.mate-desktop.org/releases/${mate_version}
|
materepo=https://pub.mate-desktop.org/releases/${mate_version}
|
||||||
themerepo=https://pub.mate-desktop.org/releases/themes/${theme_version}
|
themerepo=https://pub.mate-desktop.org/releases/themes/${theme_version}
|
||||||
|
@ -19,6 +19,7 @@ version() {
|
||||||
update_package() {
|
update_package() {
|
||||||
local p=$1
|
local p=$1
|
||||||
echo $p
|
echo $p
|
||||||
|
echo "# $p" >> git-commits.txt
|
||||||
|
|
||||||
local repo
|
local repo
|
||||||
if [ "$p" = "mate-themes" ]; then
|
if [ "$p" = "mate-themes" ]; then
|
||||||
|
@ -31,6 +32,13 @@ update_package() {
|
||||||
local p_versions=$(curl -sS ${repo}/ | sed -rne "s/.*\"$p-([0-9]+\\.[0-9]+\\.[0-9]+)\\.tar\\.xz.*/\\1/p")
|
local p_versions=$(curl -sS ${repo}/ | sed -rne "s/.*\"$p-([0-9]+\\.[0-9]+\\.[0-9]+)\\.tar\\.xz.*/\\1/p")
|
||||||
local p_version=$(echo $p_versions | sed -e 's/ /\n/g' | sort -t. -k 1,1n -k 2,2n -k 3,3n | tail -n1)
|
local p_version=$(echo $p_versions | sed -e 's/ /\n/g' | sort -t. -k 1,1n -k 2,2n -k 3,3n | tail -n1)
|
||||||
|
|
||||||
|
if [[ -z "$p_version" ]]; then
|
||||||
|
echo "unavailable $p"
|
||||||
|
echo "# $p not found" >> git-commits.txt
|
||||||
|
echo
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ "$p_version" = "$p_version_old" ]]; then
|
if [[ "$p_version" = "$p_version_old" ]]; then
|
||||||
echo "nothing to do, $p $p_version is current"
|
echo "nothing to do, $p $p_version is current"
|
||||||
echo
|
echo
|
||||||
|
@ -44,6 +52,8 @@ update_package() {
|
||||||
local path=${prefetch[1]}
|
local path=${prefetch[1]}
|
||||||
echo "$p: $p_version_old -> $p_version"
|
echo "$p: $p_version_old -> $p_version"
|
||||||
(cd "$root" && update-source-version mate.$p "$p_version" "$hash")
|
(cd "$root" && update-source-version mate.$p "$p_version" "$hash")
|
||||||
|
echo " git add pkgs/desktops/mate/$p" >> git-commits.txt
|
||||||
|
echo " git commit -m \"mate.$p: $p_version_old -> $p_version\"" >> git-commits.txt
|
||||||
echo
|
echo
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue