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 0f0ab22d542e0fa308fea518acff0b2a27d2b456
parent 2350811d821724fdf92c342b47645630c29a19a0
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date:   Sat, 27 Apr 2024 15:20:03 +0200

If README is present, use it as repository index, otherwise use log

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

diff --git a/bin/git_update_repo_html.sh b/bin/git_update_repo_html.sh @@ -11,10 +11,13 @@ cd "${1}/${2}/${3}" stagit "${1}/${2}/${3}.git" mkdir -p "${1}/${2}/${3}/files" -if [ -z $(find "${1}/${2}/${3}/files/" -type f -name "README*.html") ]; then +if [ -z $(find "${1}/${2}/${3}/file/" -type f -name "README*.html") ]; then ln -sf "${1}/${2}/${3}/log.html" "${1}/${2}/${3}/index.html" else - ln -sf "${1}/${2}/${3}/files/README*.html" "${1}/${2}/${3}/index.html" + find "${1}/${2}/${3}/file" \ + -type f \ + -name "README*.html" \ + -exec ln -sf {} "${1}/${2}/${3}/index.html" \; fi # Protect Mail-Adresses in HTML