File: hg_revision.bat

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

hg id -n > hg_temp.txt
set /p local_revision= < hg_temp.txt
hg id -i > hg_temp.txt
set /p global_revision= < hg_temp.txt
del hg_temp.txt

echo const char * TEXSTUDIO_HG_REVISION = "%local_revision%:%global_revision%";  > hg_revision.cpp
%1 -c hg_revision.cpp -o %2/hg_revision.o