Skip to content

Commit

Permalink
Fix 'sed' command used to set version in man page during builds
Browse files Browse the repository at this point in the history
Also added missing '--title' argument to release generator.
  • Loading branch information
hwittenborn committed Jun 14, 2022
1 parent eec22b7 commit 2a7db79
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .drone/scripts/create-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ source makedeb/PKGBUILD

release_notes="$(parse-changelog CHANGELOG.md "${pkgver}")"
echo "${github_api_key}" | gh auth login --with-token
gh release create --target "${DRONE_COMMIT_SHA}" -n "${release_notes}" "v${pkgver}"
gh release create "v${pkgver}" --title "v${pkgver}" --target "${DRONE_COMMIT_SHA}" -n "${release_notes}"

# vim: set sw=4 expandtab:
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.3.1] - 2022-06-14
### Fixed
- Fixed `sed` command used to set version in man page during builds.

## [0.3.0] - 2022-06-13
### Added
- Add `info` command.
Expand Down
4 changes: 2 additions & 2 deletions makedeb/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Maintainer: Hunter Wittenborn <[email protected]>
pkgname=mpr-cli
pkgver=0.3.0
pkgver=0.3.1
pkgrel=1
pkgdesc='The official command-line interface for the makedeb Package Repository'
arch=('any')
Expand All @@ -23,7 +23,7 @@ build() {
cd "${pkgname}-${pkgver}/"
cargo build --release

sed "s|\$\${MPR_VERSION}|${pkgver}|" man/mpr.8.adoc
sed -i "s|:mansource: Git|:mansource: ${pkgver}|" man/mpr.1.adoc
}

package() {
Expand Down
2 changes: 1 addition & 1 deletion man/mpr.1.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
:doctype: manpage
:hardbreaks:
:manmanual: MPR CLI
:mansource: MAKEDEB $${MPR_VERSION}
:mansource: Git

== NAME
mpr - The official command-line interface for the makedeb Package Repository
Expand Down

0 comments on commit 2a7db79

Please sign in to comment.