make→pelican
This commit is contained in:
parent
68cf025fed
commit
3d9fe28da6
1 changed files with 16 additions and 5 deletions
21
build.sh
21
build.sh
|
@ -1,7 +1,18 @@
|
|||
#! /usr/bin/env bash
|
||||
BASH_FILE="$(realpath "${BASH_SOURCE[0]}")"
|
||||
BASH_ROOT="$(dirname "${FILE}")"
|
||||
|
||||
cd "${BASH_ROOT}"
|
||||
make 'clean'
|
||||
make 'publish'
|
||||
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 "${@}"
|
||||
|
|
Loading…
Reference in a new issue