mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
care for optional brackets around version string
This commit is contained in:
parent
d05a8c805e
commit
b0a73c0dfd
@ -327,7 +327,7 @@ DocumentationDir=$(dirname "${LyxSourceDir}")/Documents
|
|||||||
DmgBackground="${LyxSourceDir}"/development/MacOSX/dmg-background.png
|
DmgBackground="${LyxSourceDir}"/development/MacOSX/dmg-background.png
|
||||||
|
|
||||||
if [ -z "${LyXVersion}" ]; then
|
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
|
fi
|
||||||
LyXVersionSuffix=${LyXVersionSuffix:-$(echo "${LyXVersion}" | cut -d. -f1-2)}
|
LyXVersionSuffix=${LyXVersionSuffix:-$(echo "${LyXVersion}" | cut -d. -f1-2)}
|
||||||
case "${LyXVersion}" in
|
case "${LyXVersion}" in
|
||||||
|
Loading…
Reference in New Issue
Block a user