diff --git a/libuuu/gen_ver.sh b/libuuu/gen_ver.sh index 4c6f9ce3..02eb0bc1 100755 --- a/libuuu/gen_ver.sh +++ b/libuuu/gen_ver.sh @@ -7,7 +7,7 @@ if [ "${APPVEYOR_BUILD_VERSION}" = "" ]; then echo build not in appveyor else - git tag uuu_${APPVEYOR_BUILD_VERSION} + git tag -m"uuu ${APPVEYOR_BUILD_VERSION}" uuu_${APPVEYOR_BUILD_VERSION} fi # Test if we are in a repo @@ -15,6 +15,6 @@ if [ "$(git rev-parse --is-inside-work-tree 2>/dev/null)" = "true" ]; then #echo "In a repo" # Get the version of the last commit of the repo - version=`git describe --tags --long` + version=`git describe --long` echo "#define GIT_VERSION \"lib$version\"" > $file_to_write fi diff --git a/msvc/createversion.bat b/msvc/createversion.bat index 0e095737..b5cd5d91 100644 --- a/msvc/createversion.bat +++ b/msvc/createversion.bat @@ -7,10 +7,10 @@ IF ERRORLEVEL 1 ( IF "%APPVEYOR_BUILD_VERSION%" == "" ( echo build not from appveryor ) ELSE ( - git tag uuu_%APPVEYOR_BUILD_VERSION% + git tag -m "uuu %APPVEYOR_BUILD_VERSION%" uuu_%APPVEYOR_BUILD_VERSION% ) - FOR /F "tokens=*" %%a in ('call git describe --tags --long') do ( + FOR /F "tokens=*" %%a in ('call git describe --long') do ( echo #define GIT_VERSION "lib%%a" > %1/gitversion.h ) -) \ No newline at end of file +)