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 1a8ccd41de4881504c2359da1117ac6e0286c60c
parent 8b6cda900811f23e50ee865f74c71aa8d47725f4
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date:   Sat, 27 Apr 2024 17:07:33 +0200

use find for cleanup, fix sed syntax

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 @@ -19,7 +19,7 @@ fi cd "${1}/${2}/${3}" # Cleanup directory -rm -r "${1}/${2}/${3}/./" +find "${1}/${2}/${3}" -type f -name "*.html" -exec rm {} \; # build HTML stagit "${1}/${2}/${3}.git" @@ -31,7 +31,7 @@ else # use readme as index find "file/" -type f -name "README*.html" -exec cp {} "index.html" \; # adjust relative paths accordingly - sed -e 's/\.\.\///g' -e 's/href=\"\"/href="../"'-i "index.html" + sed -e 's/\.\.\///g' -e 's/href=\"\"/href=\"..\/\"/g' -i "index.html" fi # Protect Mail-Adresses in HTML