param( $fast, $ScriptDir = $PSScriptRoot ) Set-Location $ScriptDir $ErrorActionPreference = "Stop" if (!$fast) { Set-Location (New-Item -ItemType Directory -Path "../.." -Force) git clone --recurse-submodules https://github.com/i574n/polyglot.git # --branch gh-pages Set-Location polyglot git pull Set-Location $ScriptDir pwsh ../../polyglot/scripts/init.ps1 } . ../../polyglot/scripts/core.ps1 { pwsh ../../polyglot/apps/builder/build.ps1 -fast 1 } | Invoke-Block { pwsh ../../polyglot/apps/parser/build.ps1 -fast 1 } | Invoke-Block { pwsh ../../polyglot/apps/spiral/build.ps1 -fast 1 } | Invoke-Block { pwsh ../../polyglot/apps/spiral/builder/build.ps1 -fast 1 } | Invoke-Block { pwsh ../../polyglot/apps/dir-tree-html/build.ps1 -fast 1 } | Invoke-Block { sudo apt-get update } | Invoke-Block -Linux -Distro ubuntu { sudo apt install -y texlive-xetex pandoc fonts-nanum-coding } | Invoke-Block -Linux -Distro ubuntu { cargo install --git https://github.com/crowdagger/crowbook.git --locked } | Invoke-Block -OnError Continue { pwsh ./dep_hangulize.ps1 -fast 1 } | Invoke-Block { pwsh ../apps/documents/build.ps1 } | Invoke-Block