diff --git a/resources/mamebioses.xml b/resources/mamebioses.xml
index 0ed031155..0d1de4908 100644
--- a/resources/mamebioses.xml
+++ b/resources/mamebioses.xml
@@ -1,4 +1,4 @@
-
+
3dobios
airlbios
aleck64
diff --git a/resources/mamedevices.xml b/resources/mamedevices.xml
index c970be271..83a52758f 100644
--- a/resources/mamedevices.xml
+++ b/resources/mamedevices.xml
@@ -1,4 +1,4 @@
-
+
22vp931
3c505
a1000kbd_de
diff --git a/tools/mame_create_index_files.sh b/tools/mame_create_index_files.sh
index 2beb8a6f4..b73581283 100755
--- a/tools/mame_create_index_files.sh
+++ b/tools/mame_create_index_files.sh
@@ -27,7 +27,7 @@ if [ $# -ne 1 ]; then
fi
if [ ! -f $1 ]; then
- echo "Can't find MAME driver file" $1
+ echo "Can't find MAME driver file" $1
exit
fi
@@ -36,22 +36,25 @@ MAMEBIOSFILE=mamebioses.xml
MAMEDEVICEFILE=mamedevices.xml
MAMENAMEFILE=mamenames.xml
-echo "" > $MAMEBIOSFILE
+echo "" > $MAMEBIOSFILE
-for bios in $(xmlstarlet sel -t -m "/mame/machine[@isbios=\"yes\"]" -v "@name" -n $MAME_XML_FILE); do
+for bios in $(xmlstarlet sel -t -m "/mame/machine[@isbios=\"yes\"]" -v "@name" \
+ -n $MAME_XML_FILE); do
echo ""${bios}"" >> $MAMEBIOSFILE
done
-echo "" > $MAMEDEVICEFILE
+echo "" > $MAMEDEVICEFILE
-for device in $(xmlstarlet sel -t -m "/mame/machine[@isdevice=\"yes\"][rom]" -v "@name" -n $MAME_XML_FILE); do
+for device in $(xmlstarlet sel -t -m "/mame/machine[@isdevice=\"yes\"][rom]" \
+ -v "@name" -n $MAME_XML_FILE); do
echo ""${device}"" >> $MAMEDEVICEFILE
done
echo "" > $MAMENAMEFILE
-xmlstarlet sel -t -m "/mame/machine[not(@isbios=\"yes\")][not(@isdevice=\"yes\")][rom]" -v "@name" -o " " -v description -n $MAME_XML_FILE | \
+xmlstarlet sel -t -m "/mame/machine[not(@isbios=\"yes\")][not(@isdevice=\"yes\")][rom]" \
+ -v "@name" -o " " -v description -n $MAME_XML_FILE | \
awk '{ print "" $1 ""; print $1=""; print "" $0 ""}' | \
-sed s/"realname> "/"realname>"/g | sed '/^[[:space:]]*$/d' | sed s/"\n\t"/"<\/realname>\n<\/game>"/g >> $MAMENAMEFILE
-
+sed s/"realname> "/"realname>"/g | sed '/^[[:space:]]*$/d' | \
+sed s/"\n\t"/"<\/realname>\n<\/game>"/g >> $MAMENAMEFILE
diff --git a/tools/mame_merge_index_files.sh b/tools/mame_merge_index_files.sh
index cdad07b82..fc9ad5135 100755
--- a/tools/mame_merge_index_files.sh
+++ b/tools/mame_merge_index_files.sh
@@ -25,12 +25,12 @@ if [ $# -ne 3 ]; then
fi
if [ ! -f $1 ]; then
- echo "Can't find old ROM index file" $1
+ echo "Can't find old ROM index file" $1
exit
fi
if [ ! -f $2 ]; then
- echo "Can't find new ROM index file" $1
+ echo "Can't find new ROM index file" $1
exit
fi
@@ -41,8 +41,8 @@ TEMPFILE=tempfile_$(date +%H%M%S)
HEADER=$(grep "<\!--" $MAME_NEW_FILE)
-grep -v "Latest updates from MAME driver file" $MAME_OLD_FILE > $TEMPFILE
-grep -v "Latest updates from MAME driver file" $MAME_NEW_FILE >> $TEMPFILE
+grep -v "Last updated with information from MAME driver file" $MAME_OLD_FILE > $TEMPFILE
+grep -v "Last updated with information from MAME driver file" $MAME_NEW_FILE >> $TEMPFILE
echo $HEADER > $MAME_TARGET_FILE
sort -u $TEMPFILE | sed '/^[[:space:]]*$/d' >> $MAME_TARGET_FILE
rm $TEMPFILE