|
22 | 22 |
|
23 | 23 | Extra options: |
24 | 24 |
|
25 | | - no-docs|nodocs |
| 25 | + no-docs|nodocs|nodoc |
26 | 26 | Skip building documentation. |
27 | 27 | Debian packaging will not know about documentation to exist at all. |
28 | 28 | If configured regularly but with the intent not to build the docs, |
@@ -56,9 +56,9 @@ ENABLE_BUILD_DOCUMENTATION=--enable-build-documentation=pdf |
56 | 56 |
|
57 | 57 | while test $# -ne 0; do |
58 | 58 | case "$1" in |
59 | | - sim|uspace|noauto) echo "$1 is accepted for compatibility, but ignored";; |
| 59 | + sim|uspace|noauto) echo "I: Argument $1 is accepted for compatibility, but ignored";; |
60 | 60 | help|-h|--help) usage; exit 0 ;; |
61 | | - no-docs|nodocs) unset ENABLE_BUILD_DOCUMENTATION ;; |
| 61 | + no-docs|nodocs|nodoc) unset ENABLE_BUILD_DOCUMENTATION ;; |
62 | 62 | *) echo 1>&2 "Unknown option: $1" |
63 | 63 | echo 1>&2 |
64 | 64 | usage |
@@ -123,9 +123,9 @@ case $DISTRIB_NAME in |
123 | 123 | Debian-10|Debian-10.*|Raspbian-10|Raspbian-10.*) |
124 | 124 | ;; |
125 | 125 | *) |
126 | | - echo "unknown distribution: $DISTRIB_NAME" |
127 | | - echo "detected dependencies may be incomplete or wrong" |
128 | | - echo "please consider fixing it and submitting a pull request" |
| 126 | + echo "W: Unknown distribution: '$DISTRIB_NAME'." |
| 127 | + echo " Detected dependencies may be incomplete or wrong." |
| 128 | + echo " Please consider fixing it and submitting a pull request." |
129 | 129 | ;; |
130 | 130 | esac |
131 | 131 |
|
@@ -221,3 +221,30 @@ else |
221 | 221 | echo " Building of documentation is disabled." |
222 | 222 | fi |
223 | 223 | echo " The DEB_BUILD_OPTIONS environment variable also works with dpkg-buildpackage." |
| 224 | + |
| 225 | +if command -v dpkg-checkbuilddeps > /dev/null; then |
| 226 | + |
| 227 | + if [ -n "$ENABLE_BUILD_DOCUMENTATION" ]; then |
| 228 | + a=$(cd .. && dpkg-checkbuilddeps || true) |
| 229 | + if [ -n "$a" ]; then |
| 230 | + echo "W: To successfully build all of LinuxCNC, install the following build dependencies are mising:\n$a" |
| 231 | + echo " The missing packages are auto-installed by" |
| 232 | + echo " sudo apt build-dep ." |
| 233 | + else |
| 234 | + echo "I: No build dependencies missing for complete builds including documentation." |
| 235 | + fi |
| 236 | + else |
| 237 | + a=$(cd .. && dpkg-checkbuilddeps -B || true) |
| 238 | + if [ -n "$a" ]; then |
| 239 | + echo "I: No dependencies missing for building binaries only." |
| 240 | + fi |
| 241 | + fi |
| 242 | +else |
| 243 | + echo "W: Tool to check build-dependenices not found" |
| 244 | + echo " You may want to install it as follows:" |
| 245 | + echo " sudo apt install dpkg-dev" |
| 246 | + echo " and directly execute it like this:" |
| 247 | + echo " dpkg-checkbuilddeps" |
| 248 | + echo " or just execute" |
| 249 | + echo " sudo apt build-dep ." |
| 250 | +fi |
0 commit comments