Welcome to mirror list, hosted at ThFree Co, Russian Federation.

buildinc.cmd « common - github.com/windirstat/windirstat.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 197ee64590285dc38d482e982e3f197b272ed8ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
@echo off
setlocal
set WORKPATH=%1
if {%WORKPATH%}=={} set WORKPATH=.
set BUILD=%WORKPATH%\BUILD
set outfile=%WORKPATH%\buildnumber.h
for /f "" %%i in ('type "%BUILD%"') do (
  set BUILDNR=%%i
  )
set /a BUILDNR=%BUILDNR%+1
echo New build number is %BUILDNR% ...
echo // Automatically created file! > %outfile%
echo #define LINKCOUNT %BUILDNR% >> %outfile%
echo. >> %outfile%
echo %BUILDNR% > %BUILD%
endlocal