#!/bin/sh

function mdir
{
	if test ! -d $1
	then
	    echo creating "$1"
	    mkdir $1
	fi
}

cd "$IWPROJ"

mdir scripts
mdir binary
mdir kernel
mdir kernel\\os
mdir kernel\\os\\dos
mdir kernel\\os\\dos\\borland
mdir kernel\\os\\dos\\micro
mdir kernel\\os\\dos32
mdir kernel\\os\\dos32\\watcom
mdir kernel\\os\\os2
mdir kernel\\os\\windows
mdir kernel\\os\\lucid
mdir apps
mdir apps\\iwinit
mdir apps\\iwinit\\kernel
mdir apps\\play
mdir apps\\play\\kernel
mdir apps\\play\\api
mdir apps\\play\\api\\mikmod
mdir apps\\play\\api\\mikmod\\bin

mdir windows
mdir windows\\minc
cp "$MLDIR"\\include\\cmacros.inc windows\\minc
cp "$DDKDIR"\\multimed\\inc\\mmddk.h windows\\minc
cp "$DDKDIR"\\multimed\\inc\\mmddk.inc windows\\minc
cp "$SNDSYS"\\src\\rinc\\msmixmgr.h windows\\minc
cp "$MC8DIR"\\include\\windows.h windows\\minc
cp "$MC8DIR"\\include\\windows.inc windows\\minc
cp "$MC8DIR"\\include\\windowsx.h windows\\minc
mdir windows\\kernel
mdir windows\\viwd
mdir windows\\viwd\\minc
cp "$DDKDIR"\\include\\debug.inc windows\\viwd\\minc
cp "$DDKDIR"\\include\\vdmad.inc windows\\viwd\\minc
cp "$DDKDIR"\\include\\vmm.inc windows\\viwd\\minc
cp "$DDKDIR"\\include\\vpicd.inc windows\\viwd\\minc

mdir windows\\mixer
mdir windows\\iwloader
mdir sbos
mdir tools
mdir tools\\rommaker
mdir tools\\rommaker\\kernel
mdir tools\\mlscomp
mdir dist
mdir dist\\apps
mdir dist\\windows
mdir dist\\win95
mdir dist\\sbos
mdir dist\\language
mdir dist\\language\\english
mdir dist\\patches
mdir dist\\sound
