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 2351d5784fadc7a855acf0b52c7ed8b4c8bfb68b
parent 089b7ee9664cc8ef6602be57b6bc6442c6177aa8
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date:   Sat, 27 Apr 2024 22:51:28 +0200

Also use syntax highlights in commits

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

diff --git a/bin/git_update_repo_html.sh b/bin/git_update_repo_html.sh @@ -29,6 +29,8 @@ stagit "${1}/${2}/${3}.git" # insert highlighting template into all files that may show code find "${1}/${2}/${3}/file" -type f -name "*.html" \ -exec sed "/<\/html>/r ${1}/templates/highlight.tt" -i {} \; +find "${1}/${2}/${3}/commit" -type f -name "*.html" \ + -exec sed "/<\/html>/r ${1}/templates/highlight.tt" -i {} \; if [ -z $(find "${1}/${2}/${3}/file" -type f -name "README*.html") ]; then # use log.html as index