Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b7Sr2zcoRD2watXv1G
21 lines
969 B
Bash
Executable File
21 lines
969 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Regenerates every file in output/. Timing output (07) is indicative and drifts between runs.
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")/.."
|
|
mvn -q -B compile
|
|
run() { java -Dstdout.encoding=UTF-8 -cp target/classes "com.ankurm.stringformat.$1" 2>&1 | grep -v '^Picked up JAVA_TOOL_OPTIONS' > "output/$2.txt"; }
|
|
run BasicsDemo 01-basics
|
|
run ReportTableDemo 02-report-table
|
|
run RoundingDemo 03-rounding
|
|
run IndianGroupingDemo 04-indian-grouping
|
|
run LocaleDemo 05-locale
|
|
run FormatErrorsDemo 06-format-errors
|
|
run FormattedAndPrintfDemo 07-formatted-printf
|
|
run ConcatBenchmarkDemo 08-concat-benchmark
|
|
if command -v gcc >/dev/null; then
|
|
gcc scripts/printf_compare.c -o /tmp/printf_compare && /tmp/printf_compare > output/10-c-printf.txt
|
|
fi
|
|
run DateTimeDemo 11-datetime
|
|
mvn -B test 2>&1 | grep -E 'Tests run|BUILD|ERROR|FAIL' | grep -v 'Picked up' > output/09-tests.txt
|
|
echo "regenerated:"; ls output
|