mirror of
https://github.com/a2-4am/4cade.git
synced 2024-12-30 02:32:27 +00:00
check for duplicate modules
This commit is contained in:
parent
9b49405acf
commit
cece2dde1d
@ -39,6 +39,16 @@ check_action_slideshow() {
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# fatal error if an attract mode module is listed more than once
|
||||||
|
dupes=$(cat res/ATTRACT.CONF |
|
||||||
|
grep -v "^#" |
|
||||||
|
grep -v "^$" |
|
||||||
|
sort |
|
||||||
|
uniq -d)
|
||||||
|
if [[ $dupes ]]; then
|
||||||
|
fatal_error "Duplicate ATTRACT.CONF module:" "$dupes"
|
||||||
|
fi
|
||||||
|
|
||||||
cat res/GAMES.CONF |
|
cat res/GAMES.CONF |
|
||||||
grep -v "^#" |
|
grep -v "^#" |
|
||||||
grep -v "^\[" |
|
grep -v "^\[" |
|
||||||
@ -46,6 +56,15 @@ cat res/GAMES.CONF |
|
|||||||
cut -d"," -f2 |
|
cut -d"," -f2 |
|
||||||
cut -d"=" -f1 > /tmp/games
|
cut -d"=" -f1 > /tmp/games
|
||||||
|
|
||||||
|
# warn about unused self-running demos
|
||||||
|
cat res/DEMO/_FileInformation.txt |
|
||||||
|
grep "Type(06)" |
|
||||||
|
grep -v "SPCARTOON" |
|
||||||
|
cut -d"=" -f1 |
|
||||||
|
while read f; do
|
||||||
|
grep "$f=0" res/ATTRACT.CONF >/dev/null || echo "unused demo: $f";
|
||||||
|
done
|
||||||
|
|
||||||
cat res/ATTRACT.CONF |
|
cat res/ATTRACT.CONF |
|
||||||
grep "=" |
|
grep "=" |
|
||||||
grep -v "^#" |
|
grep -v "^#" |
|
||||||
|
Loading…
Reference in New Issue
Block a user