From a5f5d8adcbd107098c5f2a9f59b160691a41dc65 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Mon, 24 Jun 2013 20:58:14 -0500 Subject: [PATCH] - Remove the first parameter from updaterevision, since it isn't needed with git. --- src/CMakeLists.txt | 2 +- tools/updaterevision/updaterevision.c | 12 ++++++------ zdoom.vcproj | 8 ++++---- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 6ba807090..a8abc70c8 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -488,7 +488,7 @@ endif( BACKPATCH ) get_target_property( UPDATEREVISION_EXE updaterevision LOCATION ) add_custom_target( revision_check ALL - COMMAND ${UPDATEREVISION_EXE} . src/gitinfo.h + COMMAND ${UPDATEREVISION_EXE} src/gitinfo.h WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} DEPENDS updaterevision ) diff --git a/tools/updaterevision/updaterevision.c b/tools/updaterevision/updaterevision.c index da0337a61..90127130a 100644 --- a/tools/updaterevision/updaterevision.c +++ b/tools/updaterevision/updaterevision.c @@ -41,9 +41,9 @@ int main(int argc, char **argv) vertag[0] = '\0'; lastlog[0] = '\0'; - if (argc != 3) + if (argc != 2) { - fprintf(stderr, "Usage: %s \n", argv[0]); + fprintf(stderr, "Usage: %s \n", argv[0]); return 1; } @@ -85,7 +85,7 @@ int main(int argc, char **argv) hash = lastlog + 1; } - stream = fopen (argv[2], "r"); + stream = fopen (argv[1], "r"); if (stream != NULL) { if (!gotrev) @@ -109,7 +109,7 @@ int main(int argc, char **argv) if (needupdate) { - stream = fopen (argv[2], "w"); + stream = fopen (argv[1], "w"); if (stream == NULL) { return 1; @@ -125,11 +125,11 @@ int main(int argc, char **argv) "#define GIT_TIME \"%s\"\n", hash, vertag, hash, lastlog); fclose(stream); - fprintf(stderr, "%s updated to commit %s.\n", argv[2], vertag); + fprintf(stderr, "%s updated to commit %s.\n", argv[1], vertag); } else { - fprintf (stderr, "%s is up to date at commit %s.\n", argv[2], vertag); + fprintf (stderr, "%s is up to date at commit %s.\n", argv[1], vertag); } return 0; diff --git a/zdoom.vcproj b/zdoom.vcproj index 99b52e4c8..89cf4c7b0 100644 --- a/zdoom.vcproj +++ b/zdoom.vcproj @@ -29,7 +29,7 @@