File: git_revision.bat

package info (click to toggle)
texstudio 2.12.14+debian-1
  • links: PTS
  • area: main
  • in suites: buster
  • size: 48,048 kB
  • sloc: cpp: 97,886; xml: 10,243; ansic: 8,127; sh: 158; makefile: 33
file content (9 lines) | stat: -rw-r--r-- 238 bytes parent folder | download
1
2
3
4
5
6
7
8
9
@echo off
cd %0\.. 

git describe --tags > git_temp.txt
set /p local_revision= < git_temp.txt
del hg_temp.txt

echo const char * TEXSTUDIO_GIT_REVISION = "%local_revision%";  > git_revision.cpp
%1 -c git_revision.cpp -o %2/git_revision.o