pub / stagit-scripts

Building src.jayvii.de with stagit
git clone https://src.jayvii.de/pub/stagit-scripts.git
Home | Log | Files | Exports | Refs | README | RSS

commit 204ca03ea52670143d0e6eabd5ef74c54084aed5
parent 27a98bd87634390356231591acfc7c403dd4d185
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date:   Mon,  5 Aug 2024 13:39:29 +0200

fix: sort exports reverse; only process HTML files in post-filters

Diffstat:
Mbin/git_update_repo_html.sh | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/git_update_repo_html.sh b/bin/git_update_repo_html.sh @@ -156,7 +156,7 @@ TMENU=$( # list exports EXPTS=$( - ls "${1}/${2}/${3}/exports/" -lhc \ + ls "${1}/${2}/${3}/exports/" -lhcr \ --time-style="+%Y-%m-%d %H:%m" | \ awk '{ print "<tr><td><a href=\"exports/" $8 "\">" $8 "</a></td><td>" $6 " " $7 "</td><td>" $5 "</td><tr>" }' ) @@ -185,7 +185,7 @@ ${EXPTS} # Protect Mail-Adresses in HTML MAILEXP='s/([a-zA-Z0-9\.]+)\@([a-zA-Z0-9\-]+)\.([a-z]+)/\1\[AT\]\2\[DOT\]\3/g' -find "${1}/${2}/${3}/" -type f -exec sed -E -e ${MAILEXP} -i {} \; +find "${1}/${2}/${3}/" -type f -name "*.html" -exec sed -E -e ${MAILEXP} -i {} \; # Add Exports to menu (behind Files) INJEXP="s/(>Files<\/a>\ \|)/\1 <a href=\"\/${2}\/${3}\/exports.html\">Exports<\/a> \|/"