aboutsummaryrefslogtreecommitdiff
path: root/ck.
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2026-10-11 01:12:51 -0400
committerB. Watson <urchlay@slackware.uk>2026-10-11 01:12:51 -0400
commit441ed9e1b166f4121791ccfc65020d25217910a2 (patch)
tree7546738a88935739dc2307694ec6d4a7dd3e3d5f /ck.
parent472c4c1ea72fe7884fa40148eb7f10d8d8f984aa (diff)
downloadck4up-config-441ed9e1b166f4121791ccfc65020d25217910a2.tar.gz
Hopefully everything is listed in either a .conf or .txt by now.
Diffstat (limited to 'ck.')
-rwxr-xr-xck.9
1 files changed, 9 insertions, 0 deletions
diff --git a/ck. b/ck.
index 7ab3b8a..dd58995 100755
--- a/ck.
+++ b/ck.
@@ -19,6 +19,11 @@ last_gh_tag() {
head -1 | sed 's,.*/v*\([^/]*\)</id.*,\1,'
}
+format_repology() {
+ # the whole json file is on one line...
+ head -1 | jq -C |grep '"version"'|cut -d'"' -f4 |sort -uV
+}
+
DIR=~/.ck4up
build="$( basename $( pwd ) )"
conf="$( grep -l "^$build " $DIR/*.conf )"
@@ -33,6 +38,10 @@ if grep -q "^$build .*github.*commits.atom" $conf; then
postproc="last_gh_commit"
elif grep -q "^$build .*github.*tags.atom" $conf ; then
postproc="last_gh_tag"
+elif [ "$build" = "quark" ]; then
+ postproc="head -1"
+elif [ "$conf" = "$DIR/repology.conf" ]; then
+ postproc="format_repology"
else
postproc="sort_color"
fi