Automatically add version to man page
This commit is contained in:
parent
e8a8abbe65
commit
7be1d6a967
@ -1,14 +1,14 @@
|
|||||||
# Maintainer: Mario Hüttel <mario (dot) huettel (!) gmx (dot) net>
|
# Maintainer: Mario Hüttel <mario (dot) huettel (!) gmx (dot) net>
|
||||||
|
|
||||||
pkgname=patchelfcrc
|
pkgname=patchelfcrc
|
||||||
pkgver=5e7f697
|
pkgver=v1.0.0_rc1
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="Tool for patching CRC checksums of sections into ELF binaries"
|
pkgdesc="Tool for patching CRC checksums of sections into ELF binaries"
|
||||||
arch=('i686' 'x86_64')
|
arch=('i686' 'x86_64')
|
||||||
url="https://git.shimatta.de/mhu/patchelfcrc"
|
url="https://git.shimatta.de/mhu/patchelfcrc"
|
||||||
licence=('GPLv2')
|
licence=('GPLv2')
|
||||||
depends=('libelf' 'libxml2')
|
depends=('libelf' 'libxml2')
|
||||||
makedepends=('cmake' 'pandoc' 'git' 'gvim')
|
makedepends=('cmake' 'pandoc' 'git' 'gvim' 'bash')
|
||||||
provides=('patchelfcrc')
|
provides=('patchelfcrc')
|
||||||
source=("${pkgname}-git"::"git+https://git.shimatta.de/mhu/patchelfcrc" "git+https://git.shimatta.de/3rd-party/libfort.git" "git+https://git.shimatta.de/mhu/linklist-lib")
|
source=("${pkgname}-git"::"git+https://git.shimatta.de/mhu/patchelfcrc" "git+https://git.shimatta.de/3rd-party/libfort.git" "git+https://git.shimatta.de/mhu/linklist-lib")
|
||||||
sha1sums=('SKIP' 'SKIP' 'SKIP')
|
sha1sums=('SKIP' 'SKIP' 'SKIP')
|
||||||
|
@ -10,10 +10,10 @@ add_custom_command(
|
|||||||
OUTPUT
|
OUTPUT
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/${MAN_PAGE_NAME}
|
${CMAKE_CURRENT_BINARY_DIR}/${MAN_PAGE_NAME}
|
||||||
COMMAND
|
COMMAND
|
||||||
bash -c "pandoc \"${CMAKE_CURRENT_SOURCE_DIR}/patchelfcrc.1.md\" -s -t man | gzip > \"${CMAKE_CURRENT_BINARY_DIR}/${MAN_PAGE_NAME}\""
|
bash -c "cat \"${CMAKE_CURRENT_SOURCE_DIR}/patchelfcrc.1.md\" | sed \"s/!version!/`git describe --tags --always --dirty`/\" | pandoc -s -t man | gzip > \"${CMAKE_CURRENT_BINARY_DIR}/${MAN_PAGE_NAME}\""
|
||||||
VERBATIM
|
VERBATIM
|
||||||
WORKING_DIRECTORY
|
WORKING_DIRECTORY
|
||||||
${CMAKE_CURRENT_BINARY_DIR}
|
${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
MAIN_DEPENDENCY
|
MAIN_DEPENDENCY
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/patchelfcrc.1.md
|
${CMAKE_CURRENT_SOURCE_DIR}/patchelfcrc.1.md
|
||||||
)
|
)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
% patchelfcrc(1) 0.0.2
|
% patchelfcrc(1) !version!
|
||||||
% Mario Huettel
|
% Mario Huettel
|
||||||
% October 2022
|
% October 2022
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user