Mac: fix for first-time builds.

This commit is contained in:
Charlie Fenton 2013-07-16 02:29:35 -07:00
parent 9ff8554ee4
commit ea6576c83d
1 changed files with 8 additions and 1 deletions

View File

@ -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;
}