diff mbox series

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

Message ID 20180811000615.11788-1-vishal.l.verma@intel.com (mailing list archive)
State New, archived
Headers show
Series [ndctl] ndctl, prepare-release.sh: fix revision update checks | expand

Commit Message

Verma, Vishal L Aug. 11, 2018, 12:06 a.m. UTC
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 mbox series

Patch

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)