aboutsummaryrefslogtreecommitdiff
path: root/bin/make-release.sh
diff options
context:
space:
mode:
authorSiteRelEnby2024-04-20 14:28:02 -0500
committerSiteRelEnby2024-04-20 14:28:02 -0500
commitcf3d68ce31ca47eab4980e8b07a44345ea44cebc (patch)
tree8a83bc31998f8121d9b07994adb8261066959a84 /bin/make-release.sh
parentAdd a feature to make RGB voltage configurable (diff)
parentinclude hardware-specific readme files in the release .zip (diff)
downloadanduril-cf3d68ce31ca47eab4980e8b07a44345ea44cebc.tar.gz
anduril-cf3d68ce31ca47eab4980e8b07a44345ea44cebc.tar.bz2
anduril-cf3d68ce31ca47eab4980e8b07a44345ea44cebc.zip
Merge branch 'main' into rgb-voltage-configurable
Diffstat (limited to 'bin/make-release.sh')
-rwxr-xr-xbin/make-release.sh10
1 files changed, 7 insertions, 3 deletions
diff --git a/bin/make-release.sh b/bin/make-release.sh
index da985d1..6618005 100755
--- a/bin/make-release.sh
+++ b/bin/make-release.sh
@@ -18,9 +18,7 @@ cd "$REPODIR"
#make
# release name
-#REV=$(date +'%Y-%m-%d')
-REV=$(git describe --tags --dirty --match='r2*')
-REV="${REV:1}" # convert 'r2023-...' to '2023-...'
+REV=$(bin/version-string.sh git)
# allow manually specifying a release name
[[ -n "$1" ]] && REV="$1"
@@ -42,6 +40,12 @@ cp -a \
docs/which-hex-file.md \
"$RELDIR"
+# add hardware-specific docs
+for f in $(find hw -name '*.md') ; do
+ d=$(echo "$f" | sed 's/^hw.//; s|/readme||i; s/^/readme./; s|/|-|g;')
+ cp -a "$f" "$RELDIR/$d"
+done
+
# add the .hex files
rename -f 's|hex/anduril.|'"$RELDIR/hex/$RELNAME"'.|;' hex/*.hex