mirror of
https://gitlab.com/octtspacc/OcttKB
synced 2025-04-25 20:48:40 +02:00
Update 2 files
- /GitLab.CrossRepoSync.sh - /GitLab.Main.sh
This commit is contained in:
parent
d3478394b2
commit
e0528394e6
@ -1,13 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
TargetRepo="OcttKB.Web"
|
TargetRepo="OcttKB.Web"
|
||||||
cd ./Wiki
|
git clone --depth 1 https://gitlab.com/octtspacc/$TargetRepo ./Repo-$TargetRepo
|
||||||
tiddlywiki \
|
cd ./Repo-$TargetRepo
|
||||||
--verbose \
|
cp -v ../Output.tmp/index.html ./public/index.html
|
||||||
--output ./Output.tmp \
|
|
||||||
--rendertiddler "$:/core/save/all" "index.html" "text/plain"
|
|
||||||
git clone --depth 1 https://gitlab.com/octtspacc/$TargetRepo ./$TargetRepo
|
|
||||||
cd ./$TargetRepo
|
|
||||||
cp -r ../Output.tmp/index.html ./public/index.html
|
|
||||||
git add .
|
git add .
|
||||||
git commit -m "OcttKB Cross-Repo Sync (Raw to HTML)"
|
git commit -m "OcttKB Cross-Repo Sync (Raw to HTML)"
|
||||||
git push
|
git push
|
||||||
|
@ -1,6 +1,16 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
sh ./OcttKB.EmptyDate.sh
|
sh ./OcttKB.EmptyDate.sh
|
||||||
sh ./SetupGitProfile.sh
|
sh ./SetupGitProfile.sh
|
||||||
|
|
||||||
|
tiddlywiki \
|
||||||
|
./Wiki \
|
||||||
|
--verbose \
|
||||||
|
--output ./Output.tmp \
|
||||||
|
--rendertiddler "$:/core/save/all" "index.html" "text/plain"
|
||||||
|
|
||||||
|
mkdir -vp ./public
|
||||||
|
cp -v ./Output.tmp/index.html ./public/index.html
|
||||||
|
|
||||||
CommitCheck="$(git log -1 --pretty=%B)"
|
CommitCheck="$(git log -1 --pretty=%B)"
|
||||||
CommitMsg0="OcttKB Cross-Repo Sync"
|
CommitMsg0="OcttKB Cross-Repo Sync"
|
||||||
[ "$CommitCheck" != "$CommitMsg0 (HTML to Raw)" ] && [ "$CommitCheck" != "$CommitMsg0 (Raw to HTML)" ] && sh ./GitLab.CrossRepoSync.sh || true
|
[ "$CommitCheck" != "$CommitMsg0 (HTML to Raw)" ] && [ "$CommitCheck" != "$CommitMsg0 (Raw to HTML)" ] && sh ./GitLab.CrossRepoSync.sh || true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user