Files
Spendlight/scripts/next-version.sh
Chris Olson c3cf0f3eb8 Milestones 0 and 1: foundation and money in (20261007.10)
Foundation: single arm64 container (Hono + SQLite via Drizzle, React + Vite),
local sign-in with long-lived sessions and passkeys, roles (read-only, full
access, admin), nightly and pre-upgrade backups, light and dark themes,
date-based version numbers, and the ideas lightbulb behind IDEAS_ENABLED.

Money in: accounts with balances, CSV import with bank detection, a column
mapping pop-up for unknown layouts, duplicate checks, transfer pairing and
undo; one-tap review with learned rules; activity with search, splits, tags,
notes and cash entries. Statement files are blocked from commits by a
pre-commit hook; tests use synthetic fixtures only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 19:52:07 -04:00

20 lines
594 B
Bash
Executable File

#!/usr/bin/env bash
# Print the next build version, YYYYMMDD.NN: today's date in the household's
# time zone, then a counter that starts at .01 each day.
#
# Reads the last version from the VERSION file (or $1). Set TODAY=YYYYMMDD to
# pretend it's another day, which the tests use.
set -euo pipefail
cd "$(dirname "$0")/.."
previous="${1:-$(cat VERSION 2>/dev/null || true)}"
today="${TODAY:-$(TZ="${TZ:-America/New_York}" date +%Y%m%d)}"
if [[ "$previous" =~ ^${today}\.([0-9]+)$ ]]; then
counter=$((10#${BASH_REMATCH[1]} + 1))
else
counter=1
fi
printf '%s.%02d\n' "$today" "$counter"