@@ -2,6 +2,8 @@
# SPDX-License-Identifier: GPL-3.0-or-later
# Copyright (c) 2012-2025 Daniele Bartolini et al.
+set -eu
+
while true; do
case "$1" in
-c|--clean)
. scripts/dist/version.sh
if [ $# -ne 3 ]; then
@@ -1,5 +1,7 @@
#!/bin/sh
WEBSITE_DIR="../crown-website"
CREDITS_DIR="${WEBSITE_DIR}/src/data/about/credits"
ALIASES="scripts/dist/authors-aliases.csv"
if [ $# -gt 1 ]; then
echo "Usage: $0 [version]"
echo ""
if [ $# -lt 1 ]; then
echo "Usage: $0 <package-dir>"
echo "Usage: $0 <platform> <arch> [version]"
VERSION=$(crown_version)
# If a filename is provided use it, otherwise read from stdin.
CSV=${1:-/dev/stdin}
format_src () {
find src/ -iname '*.h' -o -iname '*.inl' -o -iname '*.cpp' \
| tr '\n' '\0' \
# Convert leading spaces to tabs.
fix_indentation_char () {
unexpand --tabs=4 --first-only
git_clone () {
local DEST=$1
local REPO=$2