]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
Fix grabbing version value in configure.
authorWayne Davison <wayne@opencoder.net>
Thu, 2 Jun 2022 00:41:28 +0000 (17:41 -0700)
committerWayne Davison <wayne@opencoder.net>
Thu, 2 Jun 2022 00:41:28 +0000 (17:41 -0700)
configure.ac

index 24e383a952d2162467e0a1ac09653db7fe3ff4b0..29698bc0f6efc09750b061064538a02db0ab3d07 100644 (file)
@@ -22,7 +22,7 @@ AC_CONFIG_SRCDIR([byteorder.h])
 AC_CONFIG_HEADER(config.h)
 AC_PREREQ([2.69])
 
-PACKAGE_VERSION=`sed 's/.*"\(.*\)".*/\1/' <$srcdir/version.h`
+PACKAGE_VERSION=`sed -n 's/.*RSYNC_VERSION.*"\(.*\)".*/\1/p' <$srcdir/version.h`
 
 AC_MSG_NOTICE([Configuring rsync $PACKAGE_VERSION])