#!/usr/bin/env bash

# Installs necessary Osctet files for a Linux system. This is written to be run
# from an unpacked release archive, not from the source root.

set -eux

DESTDIR=${DESTDIR:-/usr/local}

install -D -t "$DESTDIR/bin" osctet
install -Dm644 -t "$DESTDIR/share/applications" osctet.desktop
install -Dm644 -t "$DESTDIR/share/pixmaps" osctet.png
