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 5c35a6be0de80378a9a96872a8f2ca2eb76b2842
parent 7aef084d35e29568ad8f1aee23bb6c3296533c24
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date:   Sat,  8 Jun 2024 16:45:53 +0200

fix: ensure that Summary link is also added in subdirectories

Diffstat:
Mbin/git_update_repo_html.sh | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/git_update_repo_html.sh b/bin/git_update_repo_html.sh @@ -78,7 +78,7 @@ INJEXP="s/(>Files<\/a>\ \|)/\1 <a href=\"\/${2}\/${3}\/exports\/\">Exports<\/a> find "${1}/${2}/${3}/" -type f -name "*.html" -exec sed -E "${INJEXP}" -i {} \; # Add Summary to menu (before Log) -INJEXP="s/^(<a\ href=\"log.html\">)/<a\ href=\"\/${2}\/${3}\/index.html\">Summary<\/a>\ \| \1/" +INJEXP="s/^(<a\ href=\"\.{0,2}\/*log.html\">)/<a\ href=\"\/${2}\/${3}\/index.html\">Summary<\/a>\ \| \1/" find "${1}/${2}/${3}/" -type f -name "*.html" -exec sed -E "${INJEXP}" -i {} \; # Replace "git clone" href