OcttKB/GitLab.Main.sh

19 lines
509 B
Bash
Raw Normal View History

2023-02-28 12:07:24 +01:00
#!/bin/sh
2023-03-03 13:06:20 +01:00
sh ./OcttKB.EmptyDate.sh
2023-02-28 12:07:24 +01:00
sh ./SetupGitProfile.sh
rm -rf ./Output.tmp || true
tiddlywiki \
2023-03-24 13:04:31 +01:00
./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
2023-02-28 12:07:24 +01:00
CommitCheck="$(git log -1 --pretty=%B)"
CommitMsg0="OcttKB Cross-Repo Sync"
2023-03-03 13:06:20 +01:00
[ "$CommitCheck" != "$CommitMsg0 (HTML to Raw)" ] && [ "$CommitCheck" != "$CommitMsg0 (Raw to HTML)" ] && sh ./GitLab.CrossRepoSync.sh || true