mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-12 22:14:35 +00:00
add short git hash to name of devel disk images to get different names for devel versions without manual intervention
This commit is contained in:
parent
689e54f34a
commit
b69fed3610
@ -303,6 +303,11 @@ 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
|
||||||
|
*dev*)
|
||||||
|
LyXGitCommitHash=$(cd "${LyxSourceDir}" ; git log -1 --pretty=format:%h)
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
LyxName="LyX"
|
LyxName="LyX"
|
||||||
LyxBase="${LyxName}-${LyXVersion}"
|
LyxBase="${LyxName}-${LyXVersion}"
|
||||||
@ -333,7 +338,7 @@ case "${QtVersion}" in
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
DMGNAME="${LyxBase}"
|
DMGNAME="${LyxBase}${LyXGitCommitHash:+-}${LyXGitCommitHash}"
|
||||||
DMGSIZE="550m"
|
DMGSIZE="550m"
|
||||||
|
|
||||||
# Check for existing SDKs
|
# Check for existing SDKs
|
||||||
|
Loading…
Reference in New Issue
Block a user