aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Łyszczek <michal.lyszczek@bofc.pl>2021-05-13 13:59:52 +0200
committerMichał Łyszczek <michal.lyszczek@bofc.pl>2021-05-13 14:03:33 +0200
commit7cb986d40301665b3bcfa7a56cbe881b7d4bf5df (patch)
tree4e3fe8824956f220f59037903c73b4d0478811ab
parentde5d695eaf922fdaf91693a170e1d7cde6580695 (diff)
downloadembedlog-7cb986d40301665b3bcfa7a56cbe881b7d4bf5df.tar.gz
embedlog-7cb986d40301665b3bcfa7a56cbe881b7d4bf5df.tar.bz2
embedlog-7cb986d40301665b3bcfa7a56cbe881b7d4bf5df.zip
pkg/rpm/create-pkg.sh: fix versioning extraction
no_ci Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl>
-rw-r--r--pkg/rpm/create-pkg.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/rpm/create-pkg.sh b/pkg/rpm/create-pkg.sh
index 1634874..c50d058 100644
--- a/pkg/rpm/create-pkg.sh
+++ b/pkg/rpm/create-pkg.sh
@@ -26,7 +26,7 @@ wget "https://git.bofc.pl/${project}/snapshot/${project}-${git_version}.tar.gz"
wget "https://git.bofc.pl/${project}/plain/pkg/rpm/${project}.spec.template?h=${git_version}" \
-O "SPECS/${project}-${pkg_version}.spec"
lt_version="$(curl "https://git.bofc.pl/${project}/plain/src/Makefile.am?h=${git_version}" | \
- grep "${project}_la_LDFLAGS = -version-info" | cut -f4 -d\ )"
+ grep "LIBRARY_VERSION=" | cut -f2 -d=)"
current="$(echo ${lt_version} | cut -f1 -d:)"
revision="$(echo ${lt_version} | cut -f2 -d:)"