diff options
| author | emmett1 <me@emmett1.my> | 2026-05-29 23:40:06 +0800 |
|---|---|---|
| committer | emmett1 <me@emmett1.my> | 2026-05-29 23:40:06 +0800 |
| commit | 49717b9544bacbcd38a10b791adcb4a4aa2e9162 (patch) | |
| tree | d032595b7f70de43df9e485ce7da196bb125aee3 /apkg-outdated | |
| parent | 53900763c5574fe60beb877dda57ea76941f7cec (diff) | |
| download | autils-49717b9544bacbcd38a10b791adcb4a4aa2e9162.tar.gz autils-49717b9544bacbcd38a10b791adcb4a4aa2e9162.zip | |
updates
Diffstat (limited to 'apkg-outdated')
| -rwxr-xr-x | apkg-outdated | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/apkg-outdated b/apkg-outdated deleted file mode 100755 index 9963f08..0000000 --- a/apkg-outdated +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/sh - -[ "$1" ] || { - echo "script to check outdated package from repology" - echo " usage: $0 <port path> <port path> ..." - echo - exit 1 -} - -while [ "$1" ]; do - unset curver port - [ -f $1/abuild ] && port=$(realpath $1) - [ "$port" ] || { shift; continue; } - repo=${port%/*}; repo=${repo##*/} - pname=${1##*/} - curver=$(grep ^version= $port/abuild | awk -F = '{print $2}') - [ "$curver" ] || { shift; continue; } - if [ -s $1/outdated ]; then - pname=$(tail -n1 $1/outdated) - else - case $pname in - python-*) pname=python:${pname#python-};; - esac - fi - newver=$(curl -s -H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36" https://repology.org/badge/latest-versions/$pname.svg | grep middle | sed 's/.*middle">//;s/<.*//;s/,//' | tr ' ' '\n' | tail -n1) - if [ "$newver" = "-" ]; then - echo "$repo/${1##*/} 404 ($curver)" - elif [ "$curver" != "$newver" ]; then - echo "$repo/${1##*/} $newver ($curver)" - fi - shift -done |