= Debian Macros = <> == Stable == * {{{<>}}} is <> * {{{<>}}} is <> * {{{<>}}} is <> * {{{<>}}} is <> == Old Stable == * {{{<>}}} is <> * {{{<>}}} is <> * {{{<>}}} is <> * {{{<>}}} is <> == Curl Test == {{{ % curl -s https://deb.debian.org/debian/dists/stable/Release | egrep -i 'suite|version|date|description' Suite: stable Version: 12.2 Date: Sat, 07 Oct 2023 09:29:19 UTC Description: Debian 12.2 Released 07 October 2023 }}} {{{ % curl -s https://deb.debian.org/debian/dists/oldstable/Release | egrep -i 'suite|version|date|description' Suite: oldstable Version: 11.8 Date: Sat, 07 Oct 2023 11:07:16 UTC Description: Debian 11.8 Released 07 October 2023 }}} == Idea for DebianRelease == {{{ #!/bin/bash # DebianRelease.sh # %F full date; same as %Y-%m-%d echo for i in stable oldstable do echo "## $i ##" date0=$(curl -s https://deb.debian.org/debian/dists/$i/Release | grep ^Description | cut -d' ' -f5-7) echo "date0=$date0" date1=$(date --date="$date0" +%F) echo "date1=$date1" echo "<> is $date1" echo done }}} {{{ ## stable ## date0=07 October 2023 date1=2023-10-07 <> is 2023-10-07 ## oldstable ## date0=07 October 2023 date1=2023-10-07 <> is 2023-10-07 }}}