detz: M0 scaffold

This commit is contained in:
2026-10-24 06:40:09 +02:00
parent fc436aeb24
commit 89918cbf0e
32 changed files with 599 additions and 3 deletions
+7
View File
@@ -0,0 +1,7 @@
#!/bin/sh
set -e
msg=${1:-update}
v=$(cat VERSION); d=$(date +%F)
{ echo "# Changelog"; echo; echo "## [$v] - $d"; echo "- $msg"; echo; tail -n +2 CHANGELOG.md; } > CHANGELOG.md.new
mv CHANGELOG.md.new CHANGELOG.md
echo "changelog updated"
+8
View File
@@ -0,0 +1,8 @@
#!/bin/sh
set -e
: "${PART:=patch}"
tools/version-bump.sh "$PART"
tools/changelog.sh "$MSG"
git add VERSION CHANGELOG.md 2>/dev/null || true
git commit -m "detz: release v$(cat VERSION) $MSG" 2>/dev/null || true
tools/tag.sh
+4
View File
@@ -0,0 +1,4 @@
#!/bin/sh
set -e
v=$(cat VERSION)
git tag -a "detz-v$v" -m "detz v$v" 2>/dev/null || echo "tag detz-v$v (no git or exists)"
+8
View File
@@ -0,0 +1,8 @@
#!/bin/sh
set -e
part=${1:-patch}
v=$(cat VERSION)
maj=${v%%.*}; rest=${v#*.}; min=${rest%%.*}; pat=${rest##*.}
case $part in major) maj=$((maj+1)); min=0; pat=0;; minor) min=$((min+1)); pat=0;; *) pat=$((pat+1));; esac
echo "$maj.$min.$pat" > VERSION
echo "VERSION -> $(cat VERSION)"