From 6abac20d38e021279a88f412b78431369300dc62 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Sat, 10 Oct 2026 03:54:40 -0400 Subject: Add gitlab.conf, lists of unchecked builds (*.txt), ck and ck. scripts. --- ck. | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100755 ck. (limited to 'ck.') diff --git a/ck. b/ck. new file mode 100755 index 0000000..7ab3b8a --- /dev/null +++ b/ck. @@ -0,0 +1,42 @@ +#!/bin/sh + +colorize_ver() { + color="${1:-3}" + perl -pe 's,(\d[\d.]+),\x1b[1;3'$color'm$1\x1b[0m,x' +} + +sort_color() { + sort -V | colorize_ver +} + +last_gh_commit() { + # only show latest commit + head -1 | sed 's,.*::Commit/\([^<]*\),\1,' +} + +last_gh_tag() { + # only show latest commit + head -1 | sed 's,.*/v*\([^/]*\)&1 ; exit 0 ;; + *" "*) echo "$build is in multiple configs: $conf" 2>&1; exit 0;; + *) ;; +esac + +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" +else + postproc="sort_color" +fi + +ck4up -dk -f "$conf" "^$build\\s" | $postproc +source ./*.info +echo "===> VERSION=$VERSION" | colorize_ver 2 -- cgit v1.2.3