noxz-sites

A collection of a builder and various scripts creating the noxz.tech sites
git clone https://noxz.tech/git/noxz-sites.git
noxz-sites

commit: 089b187dd311754a51b86acf0aa98e77d6f4ef7e
parent: 5f8ca255fd6caf9dfb2b8a8d6971e0c2185c7635
author: Chris Noxz <chris@noxz.tech>
date:   Mon, 27 Jun 2022 16:22:01 +0200
create symlink for each *.git repo
Mbuild4++++
1 file changed, 4 insertions(+)
diff --git a/build b/build
@@ -900,6 +900,10 @@ main() {
 		# move git.site to site/git
 		cp -r "git.${1}" "${1}/git"
 
+		# create symlinks for each repo, as such: {repo} -> {repo}.git
+		find "${1}/git" -type d -name "*.git"                               \
+			-execdir sh -c 'ln -s "${1}" "${1%.*}"' sh {} \;
+
 		# translate git.site to site/git
 		print_loading "Translate git site into ./git"
 		find "${1}/git" -type f -name "*.html" | while read -r file; do