From ea6576c83d7efdd139ffbb634f34a8dedb052f56 Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Tue, 16 Jul 2013 02:29:35 -0700 Subject: [PATCH] Mac: fix for first-time builds. --- clientgui/mac/SetVersion.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/clientgui/mac/SetVersion.cpp b/clientgui/mac/SetVersion.cpp index 9ad6d6e6b8..544bde54de 100644 --- a/clientgui/mac/SetVersion.cpp +++ b/clientgui/mac/SetVersion.cpp @@ -52,6 +52,13 @@ int main(int argc, char** argv) { printf("%s\n", myPath); // For debugging #endif + if (!file_exists("./English.lproj")) { + retval = mkdir("./English.lproj", 0755); + if (retval) { + printf("Error %d creating directory English.lproj\n", retval); + } + } + // BOINC Manager err = FixInfoPlist_Strings("./English.lproj/InfoPlist.strings", "BOINC Manager"); if (err) retval = err; @@ -149,7 +156,7 @@ int FixInfoPlist_Strings(char* myPath, char* name) { retval = fclose(f); } else { - puts("Error updating version number in file InfoPlist.strings\n"); + printf("Error creating file %s\n", myPath); retval = -1; }