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 ad96aefa5d77b8f40ebda3589189f7bbfa40f81d
parent 16542dec079ea3b441c2b9d8d28eb25dc0fe6d30
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date:   Sun, 19 May 2024 14:57:03 +0200

use extended regex mode

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 @@ -55,8 +55,8 @@ INJEXP="s/(>Refs<\/a>)/\1 \| <a href=\"\/${2}\/${3}\/exports\/\">Exports<\/a> /" find "${1}/${2}/${3}/" -type f -name "*.html" -exec sed -E "${INJEXP}" -i {} \; # Replace "git clone" href -INJEXP="s/git clone <a href=\"(.*)\">/git clone <a href=\"javascript:navigator.clipboard.writeText('git clone \1');alert('git clone \1 copied to your clipboard')\">/" -find "${1}/${2}/${3}/" -type f -name "*.html" -exec sed -e "${INJEXP}" -i {} \; +INJEXP="s/git clone <a href=\"(https:\/\/.*?\.git)\">/git clone <a href=javascript:navigator.clipboard.writeText(\"git clone \1\");alert(\"git clone \1 copied to your clipboard\");>/" +find "${1}/${2}/${3}/" -type f -name "*.html" -exec sed -E "${INJEXP}" -i {} \; # link assets ln -sf "${1}/assets/style.css" "${1}/${2}/${3}/style.css"