X-Git-Url: https://git.deb.at/?p=debienna.git;a=blobdiff_plain;f=LefantFotoHack%2Findex.mdwn;h=5b57a895336d673e76f4714e044ea58a30ec48e5;hp=80d36d41ec4f54ff094e8ed0887212b6e40b63a2;hb=ea8c87317210d15fe425d979903108b7998ba38b;hpb=bb58b440ee60e34e1c961060195598787087c131;ds=inline diff --git a/LefantFotoHack/index.mdwn b/LefantFotoHack/index.mdwn index 80d36d4..5b57a89 100644 --- a/LefantFotoHack/index.mdwn +++ b/LefantFotoHack/index.mdwn @@ -1,41 +1,45 @@ -{{{ -#!/usr/bin/scsh -s -!# - -(define r-s regexp-substitute/global) - -;;; to be executed in a directory with dirindex.html -;;; will echo moin markup to stdout -(display - (let ((file-contents - (call-with-input-file "dirindex.html" - (lambda (in) - (read-string (file-size "dirindex.html") in)))) - (curdir - (r-s #f - (rx (: "public_html/fotos/" - (submatch (: (= 4 numeric) - "/debianistas/" - (= 4 numeric) "_" - (= 2 numeric) "_" - (= 2 numeric))))) - (run/string (pwd)) - 1 "/"))) - (r-s #f - (rx (: "" - #\newline - "" + #\newline + "