From 4e7535fd73d232a51629fc33f65a61754a155b22 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Wed, 24 May 2023 01:16:29 +0200 Subject: Genesis commit --- scripts/colspan.sed | 10 ++++++++++ scripts/getcls.awk | 16 ++++++++++++++++ scripts/last-of-design.sed | 19 +++++++++++++++++++ scripts/xfsub | 3 +++ 4 files changed, 48 insertions(+) create mode 100755 scripts/colspan.sed create mode 100644 scripts/getcls.awk create mode 100755 scripts/last-of-design.sed create mode 100755 scripts/xfsub (limited to 'scripts') diff --git a/scripts/colspan.sed b/scripts/colspan.sed new file mode 100755 index 0000000..ef6077b --- /dev/null +++ b/scripts/colspan.sed @@ -0,0 +1,10 @@ +#!/bin/sed -f + +/colspan=X.*colspan=X.*colspan=X.*colspan=X/ s/colspan=X/colspan=3/g +/colspan=X.*colspan=X.*colspan=X/ s/colspan=X/colspan=4/g +/colspan=X.*colspan=X/ s/colspan=X/colspan=6/g +/colspan=X/ s/colspan=X/colspan=12/g + +/colspan=Y.*colspan=Y.*colspan=Y/ s/colspan=Y/colspan=2/g +/colspan=Y.*colspan=Y/ s/colspan=Y/colspan=3/g +/colspan=Y/ s/colspan=Y/colspan=6/g diff --git a/scripts/getcls.awk b/scripts/getcls.awk new file mode 100644 index 0000000..5bf3219 --- /dev/null +++ b/scripts/getcls.awk @@ -0,0 +1,16 @@ +function getcls(c) +{ + if (c == "-") + return "missing" + if (c == "X") + return "have" + if (c == "*") + return "nifc" + if (c == "O") + return "have-nifc" + if (c == "?") + return "unknown" + if (c == "/") + return "not-minted" + return "error" +} diff --git a/scripts/last-of-design.sed b/scripts/last-of-design.sed new file mode 100755 index 0000000..8e6c5a4 --- /dev/null +++ b/scripts/last-of-design.sed @@ -0,0 +1,19 @@ +#!/bin/sed -Enf + +//! { + p + d +} + +N + +/|MARKER LOL/ { + s/// + s/MARKER LOL// + p + d +} + +s/// +P +D diff --git a/scripts/xfsub b/scripts/xfsub new file mode 100755 index 0000000..cab652a --- /dev/null +++ b/scripts/xfsub @@ -0,0 +1,3 @@ +#!/bin/sh + +fsub "$1" "$2" "$3" | sponge "$3" -- cgit v1.2.3