OcttKB/GitLab.Main.sh
octt 2964783366 Update 2 files
- /Bootstrap.sh
- /GitLab.Main.sh
2023-03-24 15:34:36 +00:00

22 lines
577 B
Bash
Executable File

#!/bin/sh
sh ./OcttKB.EmptyDate.sh
sh ./SetupGitProfile.sh
# Ensure important directories
rm -rf ./Output.tmp || true
# Build HTML TiddlyWiki
tiddlywiki \
./Wiki-OcttKB \
--verbose \
--output ./Output.tmp \
--rendertiddler "$:/core/save/all" "index.html" "text/plain"
mkdir -vp ./public
cp -v ./Output.tmp/index.html ./public/index.html
sh ./Main.sh
CommitCheck="$(git log -1 --pretty=%B)"
CommitMsg0="OcttKB Cross-Repo Sync"
[ "$CommitCheck" != "$CommitMsg0 (HTML to Raw)" ] && [ "$CommitCheck" != "$CommitMsg0 (Raw to HTML)" ] && sh ./GitLab.CrossRepoSync.sh || true