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 ba6f08af66a0733bada35f9a4b51d1a84bd10f76
parent d83b37ba682beb807be21d479fb49f7460c5dc4f
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date:   Sun, 28 Apr 2024 21:31:11 +0200

Move exports into html folder

Diffstat:
Mbin/git_export_tarball.sh | 4++--
Mbin/git_update_repo_html.sh | 2+-
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/bin/git_export_tarball.sh b/bin/git_export_tarball.sh @@ -25,7 +25,7 @@ BRANCH=`git branch --show-current || echo "current"` # Create tarball and sha256. place them in the export-directory git archive --format=tar.gz -o "${BRANCH}.tar.gz" ${BRANCH} && -sha256sum "${BRANCH}.tar.gz" > "${1}/${2}/${3}.exp/${BRANCH}.tar.gz.sha256" && -mv "${BRANCH}.tar.gz" "${1}/${2}/${3}.exp/${BRANCH}.tar.gz" && +sha256sum "${BRANCH}.tar.gz" > "${1}/${2}/${3}/exports/${BRANCH}.tar.gz.sha256" && +mv "${BRANCH}.tar.gz" "${1}/${2}/${3}/exports/${BRANCH}.tar.gz" && echo "Archive can be retrieved from ${2}/${3}.exp/${BRANCH}.tar.gz" diff --git a/bin/git_update_repo_html.sh b/bin/git_update_repo_html.sh @@ -47,7 +47,7 @@ MAILEXP='s/([a-zA-Z0-9\.]+)\@([a-zA-Z0-9\-]+)\.([a-z]+)/\1\[AT\]\2\[DOT\]\3/g' find "${1}/${2}/${3}/" -type f -exec sed -E -e ${MAILEXP} -i {} \; # Add Exports to menu -INJEXP="s/(>Log<\/a>)/\1 \| <a href=\"\/${2}\/${3}.exp\/\">Exports<\/a> /" +INJEXP="s/(>Log<\/a>)/\1 \| <a href=\"exports\/\">Exports<\/a> /" find "${1}/${2}/${3}/" -type f -name "*.html" -exec sed -E "${INJEXP}" -i {} \; # link assets