#!/usr/bin/env bash
set -euo pipefail

SRC="/home/mario/mars/mars-nwe-build/dosutils/net.exe"
SYS="/var/mars_nwe/SYS"

# Nur unsere aktuell getesteten Open-Source-Tools überschreiben:
install -m 0644 "$SRC" "$SYS/public/login.exe"
install -m 0644 "$SRC" "$SYS/login/login.exe"

install -m 0644 "$SRC" "$SYS/public/map.exe"
install -m 0644 "$SRC" "$SYS/login/map.exe"

install -m 0644 "$SRC" "$SYS/public/slist.exe"
install -m 0644 "$SRC" "$SYS/login/slist.exe"

install -m 0644 "$SRC" "$SYS/public/pathins.exe"
install -m 0644 "$SRC" "$SYS/public/pathdel.exe"
install -m 0644 "$SRC" "$SYS/public/path.exe"
install -m 0644 "$SRC" "$SYS/public/flag.exe"
install -m 0644 "$SRC" "$SYS/public/flagdir.exe"
install -m 0644 "$SRC" "$SYS/public/rights.exe"
install -m 0644 "$SRC" "$SYS/public/grant.exe"
install -m 0644 "$SRC" "$SYS/public/revoke.exe"
install -m 0644 "$SRC" "$SYS/public/remove.exe"
install -m 0644 "$SRC" "$SYS/public/ndir.exe"

# Optional nur wenn du gerade diese Open-Source-Version testen willst:
# install -m 0644 "$SRC" "$SYS/public/passwd.exe"
# install -m 0644 "$SRC" "$SYS/public/capture.exe"
# install -m 0644 "$SRC" "$SYS/public/endcap.exe"
# install -m 0644 "$SRC" "$SYS/public/logout.exe"

install -m 0644 "$SRC" "$SYS/public/tests.exe"


echo "deployed selected Open Source DOS utils from: $SRC"
