1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00
This commit is contained in:
Sander Cox 2025-08-09 06:23:10 +02:00 committed by GitHub
commit a9211878a9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -117,7 +117,7 @@ int main (int argc, char* argv[])
" resultant class, but #ifdef'ed out using the name of the sub-directory (hard to\n"
" explain, but obvious when you try it...)\n";
return 0;
return 2; // USAGE
}
const File sourceDirectory (File::getCurrentWorkingDirectory()
@ -129,7 +129,7 @@ int main (int argc, char* argv[])
<< sourceDirectory.getFullPathName()
<< std::endl << std::endl;
return 0;
return 1; // General ERROR
}
const File destDirectory (File::getCurrentWorkingDirectory()
@ -140,7 +140,7 @@ int main (int argc, char* argv[])
std::cout << "Destination directory doesn't exist: "
<< destDirectory.getFullPathName() << std::endl << std::endl;
return 0;
return 1; // General ERROR
}
String className (argv[3]);
@ -161,7 +161,7 @@ int main (int argc, char* argv[])
{
std::cout << "Didn't find any source files in: "
<< sourceDirectory.getFullPathName() << std::endl << std::endl;
return 0;
return 1; // General ERROR
}
headerFile.deleteFile();
@ -173,7 +173,7 @@ int main (int argc, char* argv[])
{
std::cout << "Couldn't open "
<< headerFile.getFullPathName() << " for writing" << std::endl << std::endl;
return 0;
return 126; // NO_PERM
}
std::unique_ptr<OutputStream> cpp (cppFile.createOutputStream());
@ -182,7 +182,7 @@ int main (int argc, char* argv[])
{
std::cout << "Couldn't open "
<< cppFile.getFullPathName() << " for writing" << std::endl << std::endl;
return 0;
return 126; // NO_PERM
}
*header << "/* (Auto-generated binary data file). */\r\n\r\n"