Glimmer / app / native / scripts / core-checks.sh
| 1 | #!/bin/zsh |
| 2 | # Compiles and runs the core checks (recurrence, statistics, persistence, backup and journal merge). |
| 3 | set -euo pipefail |
| 4 | native="${0:A:h:h}" |
| 5 | build="$(mktemp -d)" |
| 6 | trap 'rm -rf "$build"' EXIT |
| 7 | xcrun swiftc -parse-as-library "$native/Checks/CoreChecks.swift" \ |
| 8 | "$native"/Glimmer/{Catalog,Journal,JournalStore,JournalReplica,JournalCloud,ReflectionSummary,EarnedCoins,ReadingMotion,EditorialLibrary,GalleryCatalog,GalleryAmbience,Gallery,ReaderRanks,Design,AgentAccess,AgentSetup,AgentSkillInstaller,PersonalReminders,Toolkit,CoachPrompts,Tactile,Glyph,GlyphMap,SupportReminder,InkspringLink}.swift \ |
| 9 | -o "$build/core-checks" |
| 10 | "$build/core-checks" "$native" "$@" |