#! /bin/bash

ROOT="${1}"
LIBDIR="${ROOT}/usr/share/over-env"
BINDIR="${ROOT}/usr/bin"
CFGDIR="${ROOT}/etc"
LOCALEDIR="${ROOT}/usr/share/i18n/locales"

mkdir -p "${BINDIR}"
cp bin/* "${BINDIR}"

mkdir -p "${LIBDIR}"
cp lib/* "${LIBDIR}"

mkdir -p "${CFGDIR}"
cp -r etc/* "${CFGDIR}"

mkdir -p "${LOCALEDIR}"
cp locale/* "${LOCALEDIR}"
