#!/bin/bash
#script which automates some standard things when porting mame-dos

#clean up a bit
rm -fR allegro.h cfg hi inp obj pcx roms samples images artwork ym2203.opm

#create doc dir and unixy
mkdir doc
mv cheat.dat *.txt *.doc *.1st doc
cd doc
d2u *
rm *.orig
mv readme.txt readme.dos
cd ..

#fix comments & includes
cd src
fix-comments `find -name "*.c"`
fix-comments `find -name "*.h"`
rm  `find -name "*.orig"`
cd ..
fix-includes

#mv makefile makefile.dos and unixy
mv makefile makefile.dos
d2u makefile.dos
rm makefile.dos.orig
