File: createversion.bat

package info (click to toggle)
mfgtools 1.5.243-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,296 kB
  • sloc: cpp: 10,100; javascript: 546; python: 335; sh: 85; xml: 53; makefile: 18
file content (16 lines) | stat: -rw-r--r-- 360 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
@echo off

call git --version
IF ERRORLEVEL 1 (
	echo build from tarball
) ELSE (
	IF "%APPVEYOR_BUILD_VERSION%" == "" (
		echo build not from appveryor
	) ELSE (
		git tag -m "uuu %APPVEYOR_BUILD_VERSION%" uuu_%APPVEYOR_BUILD_VERSION%
	) 

	FOR /F "tokens=*" %%a in ('call git describe --long') do (
		echo #define GIT_VERSION "lib%%a" > %1/gitversion.h
	)
)