#!/bin/sh

SRC=owfs_makefiles
DEST=owfs

#mkdir -p ${DEST}/module/owlib/src/c/
#mkdir -p ${DEST}/module/owfs/src/c/
#mkdir -p ${DEST}/module/owhttpd/src/c/
#mkdir -p ${DEST}/src/include/

cp ${SRC}/Makefile ${DEST}/Makefile
cp ${SRC}/module/Makefile ${DEST}/module/Makefile
cp ${SRC}/module/owlib/Makefile ${DEST}/module/owlib/Makefile
cp ${SRC}/module/owserver/Makefile ${DEST}/module/owserver/Makefile
cp ${SRC}/module/owfs/Makefile ${DEST}/module/owfs/Makefile
cp ${SRC}/module/owhttpd/Makefile ${DEST}/module/owhttpd/Makefile
cp ${SRC}/module/owftpd/Makefile ${DEST}/module/owftpd/Makefile

cp ${SRC}/module/owlib/src/Makefile ${DEST}/module/owlib/src/Makefile
cp ${SRC}/module/owserver/src/Makefile ${DEST}/module/owserver/src/Makefile
cp ${SRC}/module/owfs/src/Makefile ${DEST}/module/owfs/src/Makefile
cp ${SRC}/module/owhttpd/src/Makefile ${DEST}/module/owhttpd/src/Makefile
cp ${SRC}/module/owftpd/src/Makefile ${DEST}/module/owftpd/src/Makefile

cp ${SRC}/module/owlib/src/c/Makefile ${DEST}/module/owlib/src/c/Makefile
cp ${SRC}/module/owserver/src/c/Makefile ${DEST}/module/owserver/src/c/Makefile
cp ${SRC}/module/owfs/src/c/Makefile ${DEST}/module/owfs/src/c/Makefile
cp ${SRC}/module/owhttpd/src/c/Makefile ${DEST}/module/owhttpd/src/c/Makefile
cp ${SRC}/module/owftpd/src/c/Makefile ${DEST}/module/owftpd/src/c/Makefile

cp ${SRC}/src/include/owfs_config.h ${DEST}/src/include/owfs_config.h
