#!/bin/bash
#the gnuboy executable should be named "gnub" and should NOT have a .gpe
# file extension (as it would get erased by this next line)
rm *.gpe
# work on all gb/gbc files in the roms/ directory
for i in roms/*\.gb*
do
# generate the name of the .gpe script for this rom
tmp=${i%.*}.gpe
sn=${tmp#roms/}
# write out the contents of the new .gpe script
echo ./gnub \"$i\" > "$sn"
echo cd /usr/gp2x >> "$sn"
echo exec ./gp2xmenu >> "$sn"
done
Thanks! I had heard about this before but I thought it would be loaded with stuff I didn't want or need and would just confuse me.TelcoLou posted on Dec 16 2005 at 01:04 AM said:
