mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-29 14:02:57 +00:00
12 lines
460 B
Bash
Executable File
12 lines
460 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Changing the commas to newlines is a hack to handle the lists used in data/sound-utils.cfg.
|
|
find -name '*.cfg' | xargs egrep '\.wav|\.ogg' | tr ',' '\n' | perl -e 'while(<>){/([a-zA-Z0-9_-]*(\.ogg|\.wav))/; print "$1\n";}' | sort | uniq > tmp-referenced-sounds-list
|
|
|
|
ls sounds > tmp-sound-list
|
|
ls music > tmp-music-list
|
|
cat tmp-sound-list tmp-music-list | sort | uniq > tmp-all-sounds-list
|
|
|
|
diff -u tmp-referenced-sounds-list tmp-all-sounds-list
|
|
|