Fix make attract on Linux (#176)

This commit is contained in:
Tom Greene 2020-05-03 15:03:17 -04:00 committed by GitHub
parent e1dcccd5d9
commit 73ca7b64da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
# run from project root directory # run from project root directory

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
# run from project root directory # run from project root directory
@ -9,7 +9,7 @@ cat res/GAMES.CONF |
cut -d"=" -f1 | \ cut -d"=" -f1 | \
while read game; do while read game; do
# initialize attract mode configuration file for this game # initialize attract mode configuration file for this game
echo "#\n# Attract mode for $game\n# This file is automatically generated\n#\n" > /tmp/g echo -e "#\n# Attract mode for $game\n# This file is automatically generated\n#\n" > /tmp/g
# add box art, if any # add box art, if any
[ -f res/ARTWORK.SHR/"$game" ] && [ -f res/ARTWORK.SHR/"$game" ] &&
@ -60,7 +60,7 @@ cat res/GAMES.CONF |
fi fi
# add eof # add eof
echo "\n[eof]" >> /tmp/g echo -e "\n[eof]" >> /tmp/g
cat /tmp/g > res/ATTRACT/"$game" cat /tmp/g > res/ATTRACT/"$game"