]> git.lyx.org Git - features.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>
Mon, 17 Jun 2019 16:07:05 +0000 (18:07 +0200)
development/LyX-Mac-binary-release.sh

index 80c1d7e786e5758f16dca4b88c728033f9586145..92fbb197ae02c80a1b81fcfcc3691fc338fc8072 100644 (file)
@@ -327,7 +327,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