Use path based SHELL in Makefiles. It was suggested that this is a better solution for make for cases when there is no /usr/bin/env. See: https://github.com/purpleidea/mgmt/pull/694#discussion_r1015596204
16 lines
360 B
Bash
Executable File
16 lines
360 B
Bash
Executable File
#!/usr/bin/env -S bash -e
|
|
|
|
. "$(dirname "$0")/../util.sh"
|
|
|
|
# XXX: this has not been updated to latest GAPI/Deploy API. Patches welcome!
|
|
exit 0
|
|
|
|
go build -i -o libmgmt libmgmt-change2.go
|
|
# this example should change graphs frequently, and then shutdown...
|
|
$TIMEOUT ./libmgmt &
|
|
pid=$!
|
|
wait $pid # get exit status
|
|
e=$?
|
|
rm libmgmt # cleanup build artefact
|
|
exit $e
|