Skip to contentSkip to conversation

ndctl, prepare-release.sh: fix revision update checks

PATCH New Vishal Verma 1 participant 1 message Aug 11, 2018 libnvdimm: non-volatile memory device

lore
Share & tools
lore

Vishal Verma

author maintainer
#0 lore raw

PATCH 1/1 ndctl, prepare-release.sh: fix revision update checks

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.

---
 contrib/prepare-release.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
contrib/prepare-release.sh +2 -2
index 45be4d8..5009eec 100755
@@ -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)
Signature · 6 lines
2.14.4

_______________________________________________
Linux-nvdimm mailing list
[email protected]
https://lists.01.org/mailman/listinfo/linux-nvdimm