Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions libuuu/gen_ver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ 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
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
6 changes: 3 additions & 3 deletions msvc/createversion.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
)
)