Fix T74218
BSD find [1] is different from Linux find [2]
-printf is not available in the former. So -print is used.
I also tried -exec but couldn't get over white spaces in a test
directory. Also, as mentioned in my earlier comment:
https://developer.blender.org/T74218#908107
making an array of directories was necessary because chaining many -exec
commands was not feasible.
Also, invoking a shell using sh -c wasn't worth the complexity, so I fixed the
SVN_DIRS_ALL itself.
- The error in -printf '%h\n. This option in 'find' command is NOT available on Darwin. There are two occurrences in this file.
This is fixed by using -print & then iterating over the array.
- export LANG="en_US.UTF8 should be export LANG="en_US.UTF-8",
This was already fixed in rBM6308.
- svn: Skipping argument: E200025: 'locale//vi/.svn' ends in a reserved name
This is fixed by using /../ since /a/.svn is not a working directory,
but /a/ is. Also, extra / in locale/ is removed.
- Last, and the most severed is the creation of locale/locale/<lang_code> directory and files. This is wrong. (locale) is repeated twice.
This needs to be fixed & is not is in this patch.
Also see P1335 for corresponding logs.
[1]: https://www.unix.com/man-page/mojave/1/find/
[2]: https://linux.die.net/man/1/find