Last active
April 9, 2020 23:49
-
-
Save PlatinumMaster/af1dc8d7501ed0e02a687e0fa0f236fc to your computer and use it in GitHub Desktop.
pokeemerald voicegroup/cry_table fixup script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Sound Fixup script. | |
cd sound; | |
# Voice Groups | |
mkdir voicegroups; | |
cd voicegroups; | |
csplit -z -n 3 "../voice_groups.inc" /".align 2"/ {*} -f voicegroup; | |
for f in * ; | |
do | |
mv "$f" "${f}".inc ; | |
done; | |
cp "../voice_groups.inc" "../voice_groups.bak"; | |
rm "../voice_groups.inc"; | |
for f in *; | |
do | |
echo ".include \"sound/voicegroups/${f}\"" >> ../voice_groups.inc ; | |
done; | |
echo "Done"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment