forked from TASEmulators/fceux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a windows batch file version of the gitGenHdr script.
- Loading branch information
Showing
3 changed files
with
29 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
|
||
set OUTPUT_DIR=%1 | ||
|
||
set OUTPUT_FILE=%OUTPUT_DIR%/fceux_git_info.cpp | ||
|
||
git config --get remote.origin.url > git_url.txt | ||
git rev-parse HEAD > git_rev.txt | ||
|
||
set /P GIT_URL=<git_url.txt | ||
set /P GIT_REV=<git_rev.txt | ||
|
||
echo %GIT_URL% | ||
echo %GIT_REV% | ||
|
||
echo // fceux git_info.cpp -- DO NOT EDIT: This file is auto-generated at build > %OUTPUT_FILE% | ||
echo #include "Qt/fceux_git_info.h" >> %OUTPUT_FILE% | ||
echo #define FCEUX_GIT_URL "%GIT_URL%" >> %OUTPUT_FILE% | ||
echo #define FCEUX_GIT_REV "%GIT_REV%" >> %OUTPUT_FILE% | ||
echo const char *fceu_get_git_url(void){ return FCEUX_GIT_URL; } >> %OUTPUT_FILE% | ||
echo const char *fceu_get_git_rev(void){ return FCEUX_GIT_REV; } >> %OUTPUT_FILE% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters