blog/build.sh

19 lines
317 B
Bash
Raw Normal View History

2021-11-08 21:09:17 +00:00
#! /usr/bin/env bash
2020-04-12 02:26:47 +00:00
2022-03-13 17:24:39 +00:00
SETTINGS='settings.py'
function main {
local file="$(realpath "${BASH_SOURCE[0]}")"
local root="$(dirname "${file}")"
local args=()
case "${1}" in
'') args+='--print-settings' ;;
esac
cd "${root}"
pelican \
--settings "${SETTINGS}" \
"${args[@]}"
}
main "${@}"