Another bash-script for romlist generation.

27 views
Skip to first unread message

Артем Быстров

unread,
Mar 18, 2016, 4:58:20 AM3/18/16
to Cabrio FE Development
Hi everyone!

I'm read the original script for romlist generation, written by Wes Hodges, and that script won't work correctly on my Lubuntu (I don'n know, maybe my brain so awful :D), and I wrote a another version of that script, tiny and fast. Maybe, somebody my version will be a useful.
P.S. Thank you to everyone for this amazing frontend! :D

#!/bin/bash

for i in *;
do
    f
="${i%.*}"
    echo
"$f"

    echo
"      <game>
        <name>$f</name>
        <platform>platform type here</platform>
        <rom-image>/path/to/your/roms/$f.7z</rom-image>
        <images>
          <image>
            <type>logo</type>
            <image-file>/path/to/your/logos/$f.png</image-file>
          </image>
          <image>
            <type>screenshot</type>
            <image-file>/path/to/your/screenshots/$f.png</image-file>
          </image>
        </images>
      </game>"
>>gamelist.xml

done


Reply all
Reply to author
Forward
0 new messages