File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /bin/bash
22# dpkg configuration script for linuxcnc
3- # Copyright (C) 2006 Jeff Epler
3+ # Copyright (C) 2006 Jeff Epler
4+ # 2025-2026 Steffen Moeller
45#
56# This program is free software; you can redistribute it and/or modify
67# it under the terms of the GNU General Public License as published by
1213
1314set -e
1415
16+ if [[ -z " $OSTYPE " ]]; then
17+ echo " E: The 'OSTYPE' environment variable is not set."
18+ echo " Failure to confirm Linux as the operating system cannot be determined."
19+ exit 1
20+ else
21+ echo " D: Found operating system '$OSTYPE '."
22+ if [[ ! " $OSTYPE " == " linux-gnu" * ]]; then
23+ echo " W: LinuxCNC is not (yet) prepared for the operating system '$OSTYPE '."
24+ if [[ " $OSTYPE " == " freebsd" * ]]; then
25+ echo " For FreeBSD there have been reports for LinuxCNC to compile and be executable."
26+ else
27+ if [[ " $OSTYPE " == " darwin" * ]]; then
28+ echo
29+ echo " LinuxCNC is yet unlikely to be successfully built on MacOS because of missing dependencies."
30+ if command -v brew & > /dev/null; then
31+ echo " With brew, we are aware of packages"
32+ echo " autoconf automake libusb libmodbus libtircp pkgconf"
33+ echo " but missing is, e.g., a package for libgpiod."
34+ fi
35+ fi
36+ fi
37+ echo " Instead of this Debian+derivative-tailored configuration please invoke the compilation directly."
38+ exit 1
39+ fi
40+ fi
41+
1542usage () {
1643 P=${0##*/ }
1744 cat 1>&2 << EOF
You can’t perform that action at this time.
0 commit comments