OcttKB Cross-Repo Sync (HTML to Raw)

This commit is contained in:
octospacc 2023-06-11 21:32:45 +00:00
parent 882ec4fa7a
commit 054fea4e3c
5 changed files with 24 additions and 18 deletions

View File

@ -1,5 +1,5 @@
created: 20230611205522943 created: 20230611213245204
current-tiddler: GettingStarted current-tiddler: GettingStarted
modified: 20230611205522943 modified: 20230611213245204
title: $:/HistoryList title: $:/HistoryList
type: application/json type: application/json

View File

@ -1,19 +1,25 @@
#!/bin/sh #!/bin/sh
set -e # Exit on any error
set -x # Echo all commands
# Configuration
TargetWiki="OcttKB"
TargetRepo="OcttKB" TargetRepo="OcttKB"
git clone --depth 1 https://gitlab.com/octtspacc/$TargetRepo ./Repo-$TargetRepo
cd ./Repo-$TargetRepo git clone --depth 1 "https://gitlab.com/octtspacc/$TargetRepo" "./Repo-$TargetRepo"
rm -rf ./Wiki-OcttKB cd "./Repo-$TargetRepo"
rm -rf "./Wiki-$TargetWiki" || true
tiddlywiki \ tiddlywiki \
--verbose \ --verbose \
--load ../public/index.html \ --load "../$TargetWiki.html" \
--output ./Wiki-OcttKB \ --output "./Wiki-$TargetWiki" \
--savewikifolder ./Wiki-OcttKB --savewikifolder "./Wiki-$TargetWiki"
cd ./Wiki-OcttKB/tiddlers
cd "./Wiki-$TargetWiki/tiddlers"
mkdir -vp ../Normal ../System mkdir -vp ../Normal ../System
mv \$__* ../System/ mv \$__* ../System/ || true
mv * ../Normal/ mv * ../Normal/ || true
mv ../System ../Normal ./ mv ../System ../Normal ./
cd ../.. cd ../..
git add . GitPush "OcttKB Cross-Repo Sync (HTML to Raw)"
git commit -m "OcttKB Cross-Repo Sync (HTML to Raw)"
git push

View File

@ -1,6 +1,6 @@
created: 20230611200714094 created: 20230611200714094
creator: Octt creator: Octt
modified: 20230611200732434 modified: 20230611213201141
modifier: Octt modifier: Octt
title: $:/OcttKB/Repo/GitLab.CrossRepoSync.sh title: $:/OcttKB/Repo/GitLab.CrossRepoSync.sh
type: text/plain type: text/plain

View File

@ -1,6 +1,6 @@
created: 20230611175011888 created: 20230611175011888
creator: Octt creator: Octt
list: list:
modified: 20230611200621985 modified: 20230611211426118
modifier: Octt modifier: Octt
title: $:/StoryList title: $:/StoryList

View File

@ -1,7 +1,7 @@
created: 20220920092307479 created: 20220920092307479
creator: Octt creator: Octt
modified: 20230611201422098 modified: 20230611201623892
modifier: Octt modifier: Octt
title: $:/state/tab/sidebar--595412856 title: $:/state/tab/sidebar--595412856
$:/core/ui/SideBar/Open $:/core/ui/SideBar/More