aboutsummaryrefslogtreecommitdiff
path: root/ck.
diff options
context:
space:
mode:
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