nvdimm.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [ndctl PATCH] ndctl, prepare-release.sh: fix revision update checks
@ 2018-08-11  0:06 Vishal Verma
  0 siblings, 0 replies; only message in thread
From: Vishal Verma @ 2018-08-11  0:06 UTC (permalink / raw)
  To: linux-nvdimm

The libtool versioning checks only need to prompt for a 'REVISION'
update if the library source changed. We were triggering that check even
if the utility source had changed. Fix by changing $libdir to the
corresponding */lib/ directory.

Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>
---
 contrib/prepare-release.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/contrib/prepare-release.sh b/contrib/prepare-release.sh
index 45be4d8..5009eec 100755
--- a/contrib/prepare-release.sh
+++ b/contrib/prepare-release.sh
@@ -105,8 +105,8 @@ check_libtool_vers()
 {
 	local lib="$1"
 	local lib_u="${lib^^}"
-	local libdir="${lib##lib}"
-	local symfile="${libdir}/lib/${lib}.sym"
+	local libdir="${lib##lib}/lib/"
+	local symfile="${libdir}/${lib}.sym"
 	local last_cur=$(git show $last_ref:Makefile.am.in | grep -E "^${lib_u}_CURRENT" | cut -d'=' -f2)
 	local last_rev=$(git show $last_ref:Makefile.am.in | grep -E "^${lib_u}_REVISION" | cut -d'=' -f2)
 	local last_age=$(git show $last_ref:Makefile.am.in | grep -E "^${lib_u}_AGE" | cut -d'=' -f2)
-- 
2.14.4

_______________________________________________
Linux-nvdimm mailing list
Linux-nvdimm@lists.01.org
https://lists.01.org/mailman/listinfo/linux-nvdimm

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-08-11  0:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-11  0:06 [ndctl PATCH] ndctl, prepare-release.sh: fix revision update checks Vishal Verma

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).