Disclaimer: This question exists because of Unity3D and its library issue.
I've tried getting current git-cache-meta.sh and use it on windows. It doesn't work.
The first error I got was on this line:
$ find `git ls-files`
find: invalid predicate `-'
Changing it to the original find $(git ls-files)
also doesn't work (i.e. both syntaxes are no good).
The invalid predicate
is certainly due to a file named such as "boo - foo.bar"
. And so I tried to run find "$(git ls-files)"
. Then it turned into a very ugly error/bug.
I wish to know why command substitution (the weird $(
) doesn't work on mingw, but, more importantly:
How can we make
git-cache-meta.sh
work properly on mingw?
As you can see below, I actually manage to answer this without that keyword -> properly. So I still hope someone might come up with a fast and clean solution <- reason why I'm using this script to begin with.