mirror of
https://github.com/a2-4am/4cade.git
synced 2025-02-17 07:31:19 +00:00
fix casing
This commit is contained in:
parent
793ffe8f5e
commit
8d38f31df8
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# run from project root directory
|
# run from project root directory
|
||||||
|
|
||||||
cat res/games.conf |
|
cat res/GAMES.CONF |
|
||||||
tr "\r" "\n" |
|
tr "\r" "\n" |
|
||||||
grep "=" |
|
grep "=" |
|
||||||
grep -v "^#" |
|
grep -v "^#" |
|
||||||
@ -10,18 +10,18 @@ cat res/games.conf |
|
|||||||
cut -d"=" -f1 | \
|
cut -d"=" -f1 | \
|
||||||
while read game; do
|
while read game; do
|
||||||
# if I knew how to use awk, this could be O(N) instead of O(N^2)
|
# if I knew how to use awk, this could be O(N) instead of O(N^2)
|
||||||
name=`cat res/games.conf | tr "\r" "\n" | grep ",$game=" | cut -d"=" -f2`
|
name=`cat res/GAMES.CONF | tr "\r" "\n" | grep ",$game=" | cut -d"=" -f2`
|
||||||
echo "$game"" ""$name"
|
echo "$game"" ""$name"
|
||||||
|
|
||||||
# initialize attract mode configuration file for this game
|
# initialize attract mode configuration file for this game
|
||||||
echo "#\n# Attract mode for $name\n#\n" > /tmp/g
|
echo "#\n# Attract mode for $name\n#\n" > /tmp/g
|
||||||
|
|
||||||
# add box art, if any
|
# add box art, if any
|
||||||
[ -f res/artwork.shr/"$game" ] &&
|
[ -f res/ARTWORK.SHR/"$game" ] &&
|
||||||
echo "ARTWORK.SHR/$game=C" >> /tmp/g
|
echo "ARTWORK.SHR/$game=C" >> /tmp/g
|
||||||
|
|
||||||
# add DHGR action screenshots, if any
|
# add DHGR action screenshots, if any
|
||||||
cat res/ss/ACTDHGR*.CONF |
|
cat res/SS/ACTDHGR*.CONF |
|
||||||
tr "\r" "\n" |
|
tr "\r" "\n" |
|
||||||
egrep "(^|=)""$game""$" |
|
egrep "(^|=)""$game""$" |
|
||||||
cut -d"=" -f1 |
|
cut -d"=" -f1 |
|
||||||
@ -31,7 +31,7 @@ cat res/games.conf |
|
|||||||
uniq >> /tmp/g
|
uniq >> /tmp/g
|
||||||
|
|
||||||
# add HGR action screenshots, if any
|
# add HGR action screenshots, if any
|
||||||
cat res/ss/ACTION*.CONF |
|
cat res/SS/ACTION*.CONF |
|
||||||
tr "\r" "\n" |
|
tr "\r" "\n" |
|
||||||
egrep "(^|=)""$game""$" |
|
egrep "(^|=)""$game""$" |
|
||||||
cut -d"=" -f1 |
|
cut -d"=" -f1 |
|
||||||
@ -41,7 +41,7 @@ cat res/games.conf |
|
|||||||
uniq >> /tmp/g
|
uniq >> /tmp/g
|
||||||
|
|
||||||
# add GR action screenshots, if any
|
# add GR action screenshots, if any
|
||||||
cat res/ss/ACTGR*.CONF |
|
cat res/SS/ACTGR*.CONF |
|
||||||
tr "\r" "\n" |
|
tr "\r" "\n" |
|
||||||
egrep "(^|=)""$game""$" |
|
egrep "(^|=)""$game""$" |
|
||||||
cut -d"=" -f1 |
|
cut -d"=" -f1 |
|
||||||
@ -51,7 +51,7 @@ cat res/games.conf |
|
|||||||
uniq >> /tmp/g
|
uniq >> /tmp/g
|
||||||
|
|
||||||
# add self-running demo, if any
|
# add self-running demo, if any
|
||||||
cat res/attract.conf |
|
cat res/ATTRACT.CONF |
|
||||||
tr "\r" "\n" |
|
tr "\r" "\n" |
|
||||||
grep "^$game=0" >> /tmp/g
|
grep "^$game=0" >> /tmp/g
|
||||||
|
|
||||||
@ -72,7 +72,7 @@ cat res/games.conf |
|
|||||||
echo "\n[eof]" >> /tmp/g
|
echo "\n[eof]" >> /tmp/g
|
||||||
|
|
||||||
# change line endings
|
# change line endings
|
||||||
cat /tmp/g | tr "\n" "\r" > res/attract/"$game"
|
cat /tmp/g | tr "\n" "\r" > res/ATTRACT/"$game"
|
||||||
|
|
||||||
# clean up
|
# clean up
|
||||||
rm /tmp/g
|
rm /tmp/g
|
||||||
|
Loading…
x
Reference in New Issue
Block a user