Un dépôt pour générer le site de canine - retour accueil
git clone git://bebou.netlib.re/1s
Log | Files | Refs | README |
commit 12a33afbe28945530a985647cd039380f1f57208 parent fe18c36a460242cefb3eaaec8eac543071d1113b Auteurice: Arthur Pons <arthur.pons@unistra.fr> Date: Sun, 11 May 2025 22:17:18 +0200 Encore un bug dans la génération du cal Diffstat:
M | gencal | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gencal b/gencal @@ -6,6 +6,7 @@ end=$(echo "$v" | sed -n '$ p') cury="$(< cal sed -n '$ p' | awk '{print $3}')" [ "$cury" = "$end" ] && [ -e "cal" ] && exit 0 +end=$(( $end + 1 )) if [ "$cury" -gt "$end" ];then delta="$(seq "$end" "$cury" | paste -s -d'|')" @@ -13,7 +14,6 @@ if [ "$cury" -gt "$end" ];then grep -Ev "($delta)" a > cal rm a else - end=$(( $end + 1 )) for i in $(seq 0 50000);do d=$(date --date="$start-01-01 +$i day" +"%A %j %Y %m %d /%Y/%m/%d /%Y/%m/%d/%Y-%m-%d.mp4 %B") echo "$d" | grep -q "$end" && break || echo "$d"