You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

26 lines
939 B

#!/bin/bash
# =============================================================================
# Start a build of the fsfe-website checkout in the current working directory
# =============================================================================
# SPDX-FileCopyrightText: © 2020, 2021 Reinhard Müller <reinhard@fsfe.org>
# SPDX-License-Identifier: WTFPL
# =============================================================================
set -e
# Find out fsfe-website directory
gitdir="$(git rev-parse --show-toplevel)"
# Find out fsfe-local-build directory
builddir="$(dirname "$(readlink -f "$0")")"
# Start the build
echo "Building from ${gitdir} into ${builddir}/fsfe.org"
case "$1" in
--full|-f)
"${gitdir}/build/build_main.sh" build_into "${builddir}/fsfe.org" --statusdir "${builddir}/status"
;;
*)
"${gitdir}/build/build_main.sh" build_run "${builddir}/fsfe.org" --statusdir "${builddir}/status"
;;
esac