Worklog Automation
Automation
Three scripts automate worklog maintenance. All are hooked into Makefile targets.
Scripts
| Script | Purpose | Hooked Into |
|---|---|---|
|
Reads Origin dates from |
|
|
Scans worklog files for a month, finds insertion point in |
|
|
Extracts |
|
|
Read-only audit: compares files vs nav vs index, reports drift |
Manual |
Makefile Targets
| Target | Behavior |
|---|---|
|
Runs |
|
Runs |
|
Standalone: update carryover Days column |
|
Standalone: sync nav entries for current month |
|
Standalone: update monthly index for current month |
Daily Workflow
1. make new-day # Auto-updates Days, creates worklog
2. Edit worklog # Fill in summary, sessions, notes
3. Update trackers # Move completed items, add new ones
4. make push # Auto-syncs nav + index, commits, pushes
Script Design Principles
-
Idempotent — running twice produces the same result
-
Non-destructive — scripts back up files before modification
-
Informative — colored output reports what changed (or "already current")
-
Standalone — each script works independently via
./scripts/<name>.sh [year] [month]