commit a3189072cb6dae6c2e8726e0a82de87651c6da6c from: Dominik Lang date: Tue Apr 09 07:05:20 2024 UTC Initial import. A simple script that outputs the changes list from https://www.openbsd.org/faq/current.html. Useful when one is running snapshots. commit - /dev/null commit + a3189072cb6dae6c2e8726e0a82de87651c6da6c blob - /dev/null blob + 50733c072a53d570eaa6d05cce416141bd128693 (mode 644) --- /dev/null +++ obsdcur.sh @@ -0,0 +1,20 @@ +#!/bin/sh + +curl -s https://www.openbsd.org/faq/current.html | \ +awk ' +BEGIN { + RS="\n\n\n" + ORS="\n\n" +} +/h3/ { + if (match($0, "[0-9]{4}/[0-9]{2}/[0-9]{2}") == 0) + date = "unknown" + else + date = substr($0, RSTART, RLENGTH) + gsub("^[ \t]*(\n|$)", "", $0) + + printf "# %s %s\n\n", date, $0 +} +' | \ +lowdown -Tterm