mirror of
https://gitlab.com/octtspacc/OcttKB
synced 2025-02-03 16:07:37 +01:00
2964783366
- /Bootstrap.sh - /GitLab.Main.sh
22 lines
577 B
Bash
Executable File
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
|