mirror of
https://gitlab.com/octtspacc/OcttKB
synced 2025-03-10 05:30:05 +01:00
26 lines
595 B
Bash
26 lines
595 B
Bash
#!/bin/sh
|
|
set -e # Exit on any error
|
|
set -x # Echo all commands
|
|
|
|
# Configuration
|
|
TargetWiki="OcttKB"
|
|
TargetRepo="OcttKB"
|
|
|
|
git clone --depth 1 "https://gitlab.com/octtspacc/$TargetRepo" "./Repo-$TargetRepo"
|
|
cd "./Repo-$TargetRepo"
|
|
rm -rf "./Wiki-$TargetWiki" || true
|
|
|
|
tiddlywiki \
|
|
--verbose \
|
|
--load "../$TargetWiki.html" \
|
|
--output "./Wiki-$TargetWiki" \
|
|
--savewikifolder "./Wiki-$TargetWiki"
|
|
|
|
cd "./Wiki-$TargetWiki/tiddlers"
|
|
mkdir -vp ../Normal ../System
|
|
mv \$__* ../System/ || true
|
|
mv * ../Normal/ || true
|
|
mv ../System ../Normal ./
|
|
cd ../..
|
|
GitPush "OcttKB Cross-Repo Sync (HTML to Raw)"
|