mirror of
https://gitlab.com/octtspacc/sitoctt
synced 2025-02-18 04:20:50 +01:00
23 lines
427 B
Bash
Executable File
23 lines
427 B
Bash
Executable File
#!/bin/sh
|
|
. "$(dirname "$(realpath "$0")")/Lib/Globals.sh"
|
|
cd "${swd}/.."
|
|
|
|
mkdir -p ./build
|
|
cd ./build
|
|
cp -r \
|
|
../archetypes ../i18n \
|
|
../content ../assets \
|
|
../layouts ../themes \
|
|
../hugo.toml ../static \
|
|
./
|
|
|
|
if [ "${sitocttEnv}" = GitHub ]
|
|
then cp ./layouts/partials/assetsRoot.GitHub.html ./layouts/partials/assetsRoot.html
|
|
fi
|
|
|
|
sh "${swd}/Translate/Get.sh"
|
|
sh "${swd}/Translate/Apply.sh"
|
|
hugo $@
|
|
|
|
cd "${owd}"
|