diff options
| author | emmett1 <emmett1.2miligrams@protonmail.com> | 2024-05-24 12:22:12 +0800 |
|---|---|---|
| committer | emmett1 <emmett1.2miligrams@protonmail.com> | 2024-05-24 12:22:12 +0800 |
| commit | 46ca440e9d6cc606d9c3233021e32d24b25172cf (patch) | |
| tree | eeb573e47ac56498fbf74bda6d22fac47038ecab /repos/outdated.sh | |
| parent | 8c2e7bb570c11a51fdcecf7302af4058757d862c (diff) | |
| download | alicelinux-46ca440e9d6cc606d9c3233021e32d24b25172cf.tar.gz alicelinux-46ca440e9d6cc606d9c3233021e32d24b25172cf.zip | |
added repos
Diffstat (limited to 'repos/outdated.sh')
| -rwxr-xr-x | repos/outdated.sh | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/repos/outdated.sh b/repos/outdated.sh new file mode 100755 index 00000000..e316a1d9 --- /dev/null +++ b/repos/outdated.sh @@ -0,0 +1,31 @@ +#!/bin/sh + +while [ "$1" ]; do + #set -- ${1%/} + unset curver port + [ -f $1/info ] && port=${1%/} + [ "$port" ] || { shift; continue; } + pname=${1##*/} + curver=$(grep ^version= $port/info | awk -F = '{print $2}') + [ "$curver" ] || { shift; continue; } + case $pname in + python-*) pname=python:${pname#python-};; + clang) pname=llvm;; + dejavu-fonts-ttf) pame=fonts:dejavu;; + lcms2) pname=lcms;; + esac + #echo $pname + v=$(curl -SsZA a https://repology.org/badge/latest-versions/$pname.svg | grep middle | sed 's/.*middle">//;s/<.*//;s/,//' | tr ' ' '\n' | tail -n1) + #if [ "$curver" = "$v" ]; then + #echo "$1: $curver (OK)" + #elif [ "$v" = "-" ]; then + #echo "$1: $curver (404)" + #else + #echo "$1: $curver > $v" + #fi + if [ "$curver" != "$v" ]; then + echo "$port $v ($curver)" + fi + #echo $1: ${v:-404} + shift +done |