set BASE `cd`
set DEST $BASE/dist/MCC_Guigfx

cd $BASE/Examples
smake
copy Guigfx-Demo.c smakefile SCOPTIONS $DEST/Developer/C/Examples
copy Guigfx-Demo Demo.readme Test.PNG $DEST/Demos

cd $BASE
smake
copy Guigfx.mcc $DEST/Libs/MUI
copy LIBS:guigfx.library LIBS:render.library $DEST/Libs
copy MCCLib.c Guigfx_mcc.c Guigfx_functions.c gst.c SCOPTIONS $DEST/Developer/Source/MCC_Guigfx
copy Guigfx_mcc.h Guigfx_functions.h Guigfx_data.h debug.h $DEST/Developer/Source/MCC_Guigfx
copy smakefile copy2dist $DEST/Developer/Source/MCC_Guigfx
copy lib:mb_utils.lib include:lib/mb_utils.h $DEST/Developer/Source/MCC_Guigfx/lib
copy include:lib/mb_utils.h $DEST/Developer/Source/MCC_Guigfx/include

cd $BASE/docs
smake
copy Guigfx_mcc Guigfx_mcc.doc $DEST/Developer/AutoDocs
copy Guigfx_mcc.guide.info $DEST/Developer/AutoDocs/Guigfx_mcc.info
copy Guigfx_mcc.guide Guigfx_mcc.guide.info $DEST/Docs/English

cd $BASE
copy Guigfx_mcc.h $DEST/Developer/C/Include/MUI/
copy Guigfx_mcc.i $DEST/Developer/Assembler/Include/MUI/

unset DEST
unset BASE
