aboutsummaryrefslogtreecommitdiffstats
path: root/test-build
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-07-14 17:44:22 +0200
committerDanilo M. <danix@danix.xyz>2026-07-14 17:44:22 +0200
commitfdc21a1efbe60eab048c4ba36ea9bc45889fec06 (patch)
treefb3f96ebb573193b290a2084feb8505d244b3c1b /test-build
parent15ec43e46c94adac00a92099f324f74e16ae36b4 (diff)
downloadsbo-dockerbuild-fdc21a1efbe60eab048c4ba36ea9bc45889fec06.tar.gz
sbo-dockerbuild-fdc21a1efbe60eab048c4ba36ea9bc45889fec06.zip
Add SemVer versioning (1.0.0)v1.0.0
Bake a PROJECT_VERSION="1.0.0" const into every script (test-build, install.sh, and the three image-builder/*.sh). test-build and install.sh expose -V/--version; the image-builder scripts already use --version for the Slackware target, so their project-version flag is -V only. bootstrap.sh handles -V before its root check so it is queryable as any user. No VERSION file: a release bump is one sed over the consts, anchored on ^PROJECT_VERSION= so it never hits the SBo package VERSION/OPT_VERSION vars. Release procedure documented in CLAUDE.md; user-facing note in README. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'test-build')
-rwxr-xr-xtest-build4
1 files changed, 4 insertions, 0 deletions
diff --git a/test-build b/test-build
index eb4009f..54a8da4 100755
--- a/test-build
+++ b/test-build
@@ -23,6 +23,8 @@
#
# No em dashes in prose by author convention.
+PROJECT_VERSION="1.0.0" # bump via sed across all scripts; see CLAUDE.md Releases
+
# =============================================================================
# CONFIG (do not edit here; real values live in the external config file)
# =============================================================================
@@ -75,6 +77,7 @@ USAGE:
OPTIONS:
-h, --help This text.
+ -V, --version Print version and exit.
--stable Target Slackware 15.0 (image + tree). Default is -current.
--dry-run Resolve, apply overrides, print the build order, do not build.
--yes Skip the confirm prompt (the order is still printed first).
@@ -90,6 +93,7 @@ parse_args() {
while [[ $# -gt 0 ]]; do
case "$1" in
-h|--help) usage; exit 0 ;;
+ -V|--version) echo "test-build $PROJECT_VERSION"; exit 0 ;;
--stable|15.0) VERSION_ID="15.0"; shift ;;
--dry-run) DRY_RUN=1; shift ;;
--yes) ASSUME_YES=1; shift ;;