3 if [ ! -e $HOME/.zinc
]; then
5 echo "Running ZiNc for the first time..."
6 echo "Copy your roms to the corresponding folder within $HOME/.zinc"
7 echo "You should also edit the zinc.cfg and <renderer>.cfg files with"
8 echo "your desired plugins and settings."
11 mkdir
$HOME/.zinc
/{cfg
,roms
,snap
}
12 cp /usr
/share
/zinc-emu
/zinc.cfg
$HOME/.zinc
/
13 sed -e 's|~|'"$HOME"'|g' -i $HOME/.zinc
/zinc.cfg
14 cp /usr
/share
/zinc-emu
/cfg
/* $HOME/.zinc
/cfg
/
15 cd /usr
/share
/zinc-emu
/
16 .
/zinc
"$@" --use-config-file=$HOME/.zinc
/zinc.cfg
18 comm -23 <(ls /usr
/share
/zinc-emu
/cfg
/) <(ls ~
/.zinc
/cfg
/) |
while read file
21 echo "Copying $file to $HOME/.zinc/cfg/"
22 echo "Update your zinc.cfg file to use the new plugin and cfg file."
24 cp /usr
/share
/zinc-emu
/cfg
/$file $HOME/.zinc
/cfg
/$file
26 cd /usr
/share
/zinc-emu
/
27 .
/zinc
"$@" --use-config-file=$HOME/.zinc
/zinc.cfg