Add a SwiftTUI terminal app that lists race runners from the start list and results files, with an interactive menu to sort, filter by age group, toggle finishers vs. non-starters, and live-search by name. Parsing and transforms are written as pure functions over the file contents. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
29 lines
537 B
Bash
Executable file
29 lines
537 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -euo pipefail
|
|
|
|
while test $# -gt 0
|
|
do
|
|
case $1 in
|
|
-MF)
|
|
shift
|
|
touch "$1"
|
|
;;
|
|
--serialize-diagnostics)
|
|
shift
|
|
cp "${BASH_SOURCE%/*}/cc.dia" "$1"
|
|
;;
|
|
*.o)
|
|
break
|
|
;;
|
|
-v)
|
|
# TODO: Make this work with custom toolchains
|
|
DEV_DIR_PREFIX=$(awk '{ sub(/.*-isysroot /, ""); sub(/.Contents\/Developer.*/, ""); print}' <<< "${@:1}")
|
|
clang="$DEV_DIR_PREFIX/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang"
|
|
"$clang" "${@:1}"
|
|
break
|
|
;;
|
|
esac
|
|
|
|
shift
|
|
done
|