fsfe-website/build/misc.sh
delliott bb45fc85ba
All checks were successful
continuous-integration/drone/push Build is passing
feat/build-improvements-2 (#4553)
Another attempt at #4516

Adds a small fix for tag map generation

#4516 introduces build failures, but testing indicates that those failures would have been resolved by a full rebuild.

Hence this pr.

Co-authored-by: Darragh Elliott <me@delliott.xyz>
Reviewed-on: #4553
Co-authored-by: delliott <delliott@fsfe.org>
Co-committed-by: delliott <delliott@fsfe.org>
2024-10-29 14:56:41 +00:00

24 lines
443 B
Bash
Executable File

#!/usr/bin/env bash
inc_misc=true
[ -z "$inc_logging" ] && . "$basedir/build/logging.sh"
debug() {
if [ "$#" -ge 1 ]; then
echo "$(date '+%F %T'): $@" | logappend debug >&2
else
logappend debug >&2
fi
}
print_error() {
echo "Error - $@" | logappend lasterror >&2
echo "Run '$0 --help' to see usage instructions" >&2
}
die() {
echo "$(date '+%F %T'): Fatal - $@" | logappend lasterror >&2
date +%s | logstatus end_time
exit 1
}