For convenience, we've compiled a script that will examine a local ``.mame`` directory and upload whatever it finds into an output directory (defaults to ``~/romsets``). If you don't have ``.mame`` files available in a directory, you'll need to create one.
#!/bin/sh #usage: # python roms_upload.py -p [output directory] -l [mame directory] -i  COMPLETE MAME 0.139 Arcade Emulator FULL RomSet The ``romsets`` script will ask you if you want to upload a particular romset to the mame directory. It will also ask if you have a game id you want to upload and if you have a mame configuration file ``games.cfg``. The latter is a configuration file in mame's language. It's essential to have a ``games.cfg`` file and it can include lots of settings to tweak the emulator. If you don't have such a file, read tutorial
After choosing the mame directory, the script will check to see if you have a games.cfg in it and if you do, it will upload it to that mame directory. It will also look for a directory ``/mame/roms`` in the provided directory and uploads any romset files it finds in there. It will then tell you the location of the local directory with.mame in it and tells you which romsets are currently using the running config. If a romset isn't migrated to the new config, it will tell you which romset line and which games is using it. d2c66b5586