#!/bin/sh

. config/options $1

mkdir -p $ADDON_BUILD/mkimage
  cp -R $BUILD/$1/data $ADDON_BUILD/mkimage
  cp -R $BUILD/$1/packages $ADDON_BUILD/mkimage
  cp $BUILD/$1/*.cfg $ADDON_BUILD/mkimage

mkdir -p $ADDON_BUILD/mkimage/bin
  cp $BUILD/$1/src/sauer_client $ADDON_BUILD/mkimage/bin
  cp $BUILD/$1/src/sauer_server $ADDON_BUILD/mkimage/bin
