kopia lustrzana https://github.com/weetmuts/wmbusmeters
rodzic
558e6aba75
commit
3787adc71b
2
CHANGES
2
CHANGES
|
@ -1,3 +1,5 @@
|
||||||
|
Version 1.11.0 2022-12-29
|
||||||
|
|
||||||
Version 1.11.0-RC2 2022-12-29
|
Version 1.11.0-RC2 2022-12-29
|
||||||
|
|
||||||
Improve release process.
|
Improve release process.
|
||||||
|
|
|
@ -281,7 +281,7 @@ depending on if you are running as a daemon or not.
|
||||||
# Running without config files, good for experimentation and test.
|
# Running without config files, good for experimentation and test.
|
||||||
|
|
||||||
```
|
```
|
||||||
wmbusmeters version: 1.10.1
|
wmbusmeters version: 1.11.0
|
||||||
Usage: wmbusmeters {options} [device] { [meter_name] [meter_driver] [meter_id] [meter_key] }*
|
Usage: wmbusmeters {options} [device] { [meter_name] [meter_driver] [meter_id] [meter_key] }*
|
||||||
wmbusmeters {options} [hex] { [meter_name] [meter_driver] [meter_id] [meter_key] }*
|
wmbusmeters {options} [hex] { [meter_name] [meter_driver] [meter_id] [meter_key] }*
|
||||||
wmbusmetersd {options} [pid_file]
|
wmbusmetersd {options} [pid_file]
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "Wmbusmeters (W-MBus to MQTT)",
|
"name": "Wmbusmeters (W-MBus to MQTT)",
|
||||||
"version": "1.10.2",
|
"version": "1.11.0",
|
||||||
"slug": "wmbusmeters",
|
"slug": "wmbusmeters",
|
||||||
"description": "Acquire utility meter readings using the wireless mbus protocol (WMBUS)",
|
"description": "Acquire utility meter readings using the wireless mbus protocol (WMBUS)",
|
||||||
"arch": ["armv7", "aarch64", "amd64"],
|
"arch": ["armv7", "aarch64", "amd64"],
|
||||||
|
|
|
@ -34,13 +34,20 @@ PATCH=$(echo "$PARTS" | cut -f 3 -d ' ')
|
||||||
|
|
||||||
NEW_VERSION="$MAJOR.$MINOR.$PATCH"
|
NEW_VERSION="$MAJOR.$MINOR.$PATCH"
|
||||||
|
|
||||||
|
if git tag | grep -q "^${NEW_VERSION}\$"
|
||||||
|
then
|
||||||
|
echo "Oups! The new version tag $NEW_VERSION already exists!"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
NEW_MESSAGE="Version $NEW_VERSION $(date +'%Y-%m-%d')"
|
NEW_MESSAGE="Version $NEW_VERSION $(date +'%Y-%m-%d')"
|
||||||
|
|
||||||
PREV_GIT_MESSAGE=$(git log -1 --pretty=%B)
|
PREV_GIT_MESSAGE=$(git log -1 --pretty=%B)
|
||||||
|
|
||||||
if [ "PREV_GIT_MESSAGE" != "$OLD_MESSAGE" ]
|
if [ "$PREV_GIT_MESSAGE" != "$OLD_MESSAGE" ]
|
||||||
then
|
then
|
||||||
echo "Oups! Something is wrong in the git log. Expected last commit to say \"$OLD_MESSAGE\" but it does not!"
|
echo "Oups! Something is wrong in the git log."
|
||||||
|
echo "Expected last commit to say \"$OLD_MESSAGE\" but it doesn't, it says: \"$PREV_GIT_MESSAGE\""
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -59,17 +66,22 @@ while true; do
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
sed 's/"version": "[\.0-9]*"/"version": "'$NEW_VERSION'"/' ha-addon/config.json > /tmp/release_haconfig
|
# Update the ha-addon version number. This will trigger rebuilds at ha installs with auto-update.
|
||||||
|
CMD="s/\"version\": \"[\.0-9]*\"/\"version\": \"${NEW_VERSION}\"/"
|
||||||
|
sed -i "$CMD" ha-addon/config.json
|
||||||
echo "Updated version number in ha-addon/config.json to $NEW_VERSION"
|
echo "Updated version number in ha-addon/config.json to $NEW_VERSION"
|
||||||
|
|
||||||
sed "s/$OLD_MESSAGE/$NEW_MESSAGE/" CHANGES > /tmp/release_changes
|
# Update the CHANGES file
|
||||||
|
CMD="1i $NEW_MESSAGE"
|
||||||
|
sed -i "$CMD" CHANGES
|
||||||
echo "Updated version string in CHANGES"
|
echo "Updated version string in CHANGES"
|
||||||
|
|
||||||
|
CMD="s/wmbusmeters version:.*/wmbusmeters version: $NEW_VERSION/g"
|
||||||
|
sed -i "$CMD" README.md
|
||||||
|
echo "Updated version string in README"
|
||||||
|
|
||||||
git commit -am "$NEW_MESSAGE"
|
git commit -am "$NEW_MESSAGE"
|
||||||
|
|
||||||
git tag "$NEW_VERSION"
|
git tag "$NEW_VERSION"
|
||||||
|
|
||||||
echo "Now do: git push ; git push --tags"
|
echo "Now do: git push --followtags"
|
||||||
|
|
||||||
#git push
|
|
||||||
#git push --tags
|
|
||||||
|
|
|
@ -77,14 +77,11 @@ while true; do
|
||||||
done
|
done
|
||||||
|
|
||||||
# Insert release candidate line in CHANGES.
|
# Insert release candidate line in CHANGES.
|
||||||
CMD="1i $MESSAGE"
|
CMD="1i $MESSAGE\n"
|
||||||
sed -i "$CMD" CHANGES
|
sed -i "$CMD" CHANGES
|
||||||
|
|
||||||
git commit -am "$MESSAGE"
|
git commit -am "$MESSAGE"
|
||||||
|
|
||||||
git tag "$RC_VERSION"
|
git tag "$RC_VERSION"
|
||||||
|
|
||||||
echo "Now do: git push ; git push --tags"
|
echo "Now do: git push --followtags"
|
||||||
|
|
||||||
#git push
|
|
||||||
#git push --tags
|
|
||||||
|
|
Ładowanie…
Reference in New Issue