]> git.lyx.org Git - lyx.git/commitdiff
care for optional brackets around version string
authorStephan Witt <switt@lyx.org>
Mon, 17 Jun 2019 16:07:05 +0000 (18:07 +0200)
committerStephan Witt <switt@lyx.org>
Thu, 15 Dec 2022 21:43:49 +0000 (22:43 +0100)
(cherry picked from commit b0a73c0dfdbfa0541f04d7ee2578c4cd272ef7b9)

development/LyX-Mac-binary-release.sh

index 70568685354faf3e56bff724087731ce8dc6909f..282822e7f5ad2fcd370876958c399ea8bf2cdd04 100644 (file)
@@ -332,7 +332,7 @@ DocumentationDir=$(dirname "${LyxSourceDir}")/Documents
 DmgBackground="${LyxSourceDir}"/development/MacOSX/dmg-background.png
 
 if [ -z "${LyXVersion}" ]; then
-       LyXVersion=$(grep AC_INIT "${LyxSourceDir}"/configure.ac | cut -d, -f2 | tr -d " ()")
+       LyXVersion=$(grep AC_INIT "${LyxSourceDir}"/configure.ac | cut -d, -f2 | tr -d " []()")
 fi
 LyXVersionSuffix=${LyXVersionSuffix:-$(echo "${LyXVersion}" | cut -d. -f1-2)}
 case "${LyXVersion}" in