Skip to content

Commit

Permalink
Have update_version.sh update the RPM spec changelog too
Browse files Browse the repository at this point in the history
Use rpmdev-bumpspec tool to update the version field and automatically
generate a new changelog entry.

Fixes #804.
  • Loading branch information
legoktm committed Jul 3, 2024
1 parent a36ef71 commit 828e3f6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions update_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ fi
NEW_VERSION=$(echo "$1" | sed 's/-//g' | sed 's/~//g' )

# Update the version in the spec file and VERSION.
# TODO: Use rpmdev-bumpspec
echo "${NEW_VERSION}" > VERSION
sed -i'' -r -e "s/^(Version:\\t).*/\\1${NEW_VERSION}/" "rpm-build/SPECS/securedrop-workstation-dom0-config.spec"
rpmdev-bumpspec -c "See changelog.md" -n "${NEW_VERSION}" \
-u "SecureDrop Team <[email protected]>" \
rpm-build/SPECS/securedrop-workstation-dom0-config.spec

0 comments on commit 828e3f6

Please sign in to comment.