]> git.lyx.org Git - lyx.git/commitdiff
add short git hash to name of devel disk images to get different names for devel...
authorStephan Witt <switt@lyx.org>
Mon, 17 Nov 2014 18:43:33 +0000 (19:43 +0100)
committerStephan Witt <switt@lyx.org>
Mon, 17 Nov 2014 18:43:54 +0000 (19:43 +0100)
development/LyX-Mac-binary-release.sh

index 958d801aefc378781ac1ab135217e872e8d9f4b3..ba385858ff034f69cc79ffdd116ff7a38c3fe69e 100644 (file)
@@ -303,6 +303,11 @@ if [ -z "${LyXVersion}" ]; then
        LyXVersion=$(grep AC_INIT "${LyxSourceDir}"/configure.ac | cut -d, -f2 | tr -d " ()")
 fi
 LyXVersionSuffix=${LyXVersionSuffix:-$(echo "${LyXVersion}" | cut -d. -f1-2)}
+case "${LyXVersion}" in
+*dev*)
+       LyXGitCommitHash=$(cd "${LyxSourceDir}" ; git log -1 --pretty=format:%h)
+       ;;
+esac
 
 LyxName="LyX"
 LyxBase="${LyxName}-${LyXVersion}"
@@ -333,7 +338,7 @@ case "${QtVersion}" in
        ;;
 esac
 
-DMGNAME="${LyxBase}"
+DMGNAME="${LyxBase}${LyXGitCommitHash:+-}${LyXGitCommitHash}"
 DMGSIZE="550m"
 
 # Check for existing SDKs