|
1 | 1 | #!/bin/bash |
2 | 2 | # dpkg configuration script for linuxcnc |
3 | | -# Copyright (C) 2006 Jeff Epler |
| 3 | +# Copyright (C) 2006 Jeff Epler |
| 4 | +# 2025-2026 Steffen Moeller |
4 | 5 | # |
5 | 6 | # This program is free software; you can redistribute it and/or modify |
6 | 7 | # it under the terms of the GNU General Public License as published by |
|
13 | 14 | set -e |
14 | 15 |
|
15 | 16 | if [[ -z "$OSTYPE" ]]; then |
16 | | - echo "W: The 'OSTYPE' environment variable is not set." |
| 17 | + echo "E: The 'OSTYPE' environment variable is not set." |
17 | 18 | echo " Failure to confirm Linux as the operating system cannot be determined." |
18 | | -elif [[ "$OSTYPE" == "linux-gnu"* ]]; then |
19 | | - echo "I: Found operating system '$OSTYPE'." |
| 19 | + exit 1 |
20 | 20 | else |
21 | | - echo "W: LinuxCNC is not (yet) prepared for the operating system '$OSTYPE'." |
22 | | - echo " Instead of this Debian+derivative-tailored configuration please invoke the compilation directly." |
23 | | - if [[ "$OSTYPE" == "darwin"* ]]; then |
24 | | - echo |
25 | | - echo " LinuxCNC is yet unlikely to be successfully built on MacOS because of missing dependencies." |
26 | | - if command -v brew &> /dev/null; then |
27 | | - echo " With brew, we are aware of packages" |
28 | | - echo " autoconf automake libusb libmodbus libtircp pkgconf" |
29 | | - echo " but missing is, e.g., a package for libgpiod." |
| 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 |
30 | 36 | fi |
| 37 | + echo " Instead of this Debian+derivative-tailored configuration please invoke the compilation directly." |
| 38 | + exit 1 |
31 | 39 | fi |
32 | | - exit 1; |
33 | 40 | fi |
34 | 41 |
|
35 | 42 | usage () { |
|
0 commit comments