|
|
@ -1311,7 +1311,12 @@ int CDECL main(int argc, char* argv[])
|
|
|
|
if (_errors) return 1;
|
|
|
|
if (_errors) return 1;
|
|
|
|
|
|
|
|
|
|
|
|
/* get the targetfile, strip any directories and append to destination path */
|
|
|
|
/* get the targetfile, strip any directories and append to destination path */
|
|
|
|
|
|
|
|
#if defined(__MINGW32__) || defined (__CYGWIN__)
|
|
|
|
|
|
|
|
/* Under mingw32 and cygwin, we enter / via the Makefile, not the expected \ */
|
|
|
|
|
|
|
|
r = strrchr(argv[1], "/");
|
|
|
|
|
|
|
|
#else
|
|
|
|
r = strrchr(argv[1], PATHSEPCHAR);
|
|
|
|
r = strrchr(argv[1], PATHSEPCHAR);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
mkpath(pathbuf, lengthof(pathbuf), dest_dir, (r != NULL) ? &r[1] : argv[1]);
|
|
|
|
mkpath(pathbuf, lengthof(pathbuf), dest_dir, (r != NULL) ? &r[1] : argv[1]);
|
|
|
|
|
|
|
|
|
|
|
|
/* rename the .txt (input-extension) to .lng */
|
|
|
|
/* rename the .txt (input-extension) to .lng */
|
|
|
|