Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
The Story of Subsequent Tutorials and Dance Dance Revolutions Remastered Rocking the 4th
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
StarManiaKG
The Story of Subsequent Tutorials and Dance Dance Revolutions Remastered Rocking the 4th
Commits
873fa10f
Commit
873fa10f
authored
9 years ago
by
Alam Ed Arias
Browse files
Options
Downloads
Patches
Plain Diff
comptime.bat: Windows 8.1 sucks
parent
2f21c24d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
comptime.bat
+8
-9
8 additions, 9 deletions
comptime.bat
with
8 additions
and
9 deletions
comptime.bat
+
8
−
9
View file @
873fa10f
@ECHO
OFF
set
BRA
=
Unknown
set
REV
=
illegal
...
...
@@ -13,20 +12,20 @@ goto filwri
:gitrev
set
GIT
=
%
2
if
"
%GIT%
"
==
""
set
GIT
=
git
FOR
/
F
"usebackq"
%%s
IN
(
`
%GIT%
rev-parse --abbrev-ref HEAD`
)
DO
@SET
BRA
=
%%s
FOR
/
F
"usebackq"
%%s
IN
(
`
%GIT%
rev-parse HEAD`
)
DO
@SET
REV
=
%%s
for
/
f
"usebackq"
%%s
in
(
`
%GIT%
rev-parse --abbrev-ref HEAD`
)
do
@set
BRA
=
%%s
for
/
f
"usebackq"
%%s
in
(
`
%GIT%
rev-parse HEAD`
)
do
@set
REV
=
%%s
set
REV
=
%REV
:
~
0
,
8
%
goto
filwri
:svnrev
set
BRA
=
Subversion
FOR
/
F
"usebackq"
%%s
IN
(
`svnversion .`
)
DO
@SET
REV
=
%%s
for
/
f
"usebackq"
%%s
in
(
`svnversion .`
)
do
@set
REV
=
%%s
set
REV
=
r
%REV%
goto
filwri
:filwri
ECHO
//
Do
not
edit
!
This
file
was
autogenerated
>
%
1
\comptime.h
ECHO
//
by
the
%
0
batch
file
>>
%
1
\comptime.h
ECHO
//
>>
%
1
\comptime.h
ECHO
const
char
*
compbranch
=
"
%BRA%
"
;
>>
%
1
\comptime.h
ECHO
const
char
*
comprevision
=
"
%REV%
"
;
>>
%
1
\comptime.h
echo
//
Do
not
edit
!
This
file
was
autogenerated
>
%
1
\comptime.h
echo
//
by
the
%
0
batch
file
>>
%
1
\comptime.h
echo
//
>>
%
1
\comptime.h
echo
const
char
*
compbranch
=
"
%BRA%
"
;
>>
%
1
\comptime.h
echo
const
char
*
comprevision
=
"
%REV%
"
;
>>
%
1
\comptime.h
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment