macOS/build: fix prebuilt mode
The downloaded macOS tar.bz2 package is named darwin21, but it actually expands to darwin19. So the mv fails and the macosx/build.sh script starts building it instead of the prebuilt binaries.
Earlier:
rm -f -r /Users/t/vlc/vlc_git/contrib/x86_64-apple-darwin21
rm -f -R prebuilt && tar xjfo vlc-contrib-x86_64-apple-darwin21-latest.tar.bz2
mv x86_64-apple-darwin21 /Users/t/vlc/vlc_git/contrib/x86_64-apple-darwin21
mv: rename x86_64-apple-darwin21 to /Users/t/vlc/vlc_git/contrib/x86_64-apple-darwin21: No such file or directory
Now:
rm -f -r /Users/t/vlc/vlc_git/contrib/x86_64-apple-darwin21
rm -f -R prebuilt && tar xjfo vlc-contrib-x86_64-apple-darwin21-latest.tar.bz2
find . -depth 1 -type d -exec mv {} /Users/t/vlc/vlc_git/contrib/x86_64-apple-darwin21 \; -quit
cd /Users/t/vlc/vlc_git/contrib/x86_64-apple-darwin21 && /Users/t/vlc/vlc_git/contrib/src/change_prefix.sh
Edited by Ankit Meel