ENT-12600: compile: Documented/refactored script#1775
Conversation
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
| #!/bin/sh | ||
|
|
||
| . `dirname "$0"`/functions | ||
| # Usage: PROJECT=[nova|community] ROLE=[hub|agent] ./buildscripts/build-scripts/compile |
There was a problem hiding this comment.
Not for this PR, but we should probably align this with the names we use elsewhere, i.e.
enterprise instead of nova and client instead of agent.
olehermanse
left a comment
There was a problem hiding this comment.
LGTM but nice if @craigcomstock can review as well.
vpodzime
left a comment
There was a problem hiding this comment.
Looks good to me otherwise.
|
|
||
| $MAKE -C "$BASEDIR"/core -k | ||
| $MAKE -C "$BASEDIR"/core install DESTDIR="$BASEDIR"/cfengine/dist | ||
| echo "$(basename "$0"): Debug: Running make in core repo..." |
There was a problem hiding this comment.
Looks like functions deserves some new functions like log_error(), log_debug(),...
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
Ticket: ENT-12600 Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
vpodzime
left a comment
There was a problem hiding this comment.
The last commit could complicate things a lot when there are compilation issues on exotics. Fixing them one by one can take days...
olehermanse
left a comment
There was a problem hiding this comment.
PR title is no longer correct - especially last commit makes it a change in behavior rather than just documenting.
Good point @vpodzime ! Dropped the commit |
Changed PR title and dropped last commit
Build with no tests

Example output:
^ Snipped noise from sourced scripts