From 9880003a2e5642bfdbff1fcff74cca66d93a8f33 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 18 Oct 2016 14:20:21 +0200 Subject: [debug-report-bwlp] Revive old debug reporting script --- remote/modules/debug-report-bwlp/module.build | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 remote/modules/debug-report-bwlp/module.build (limited to 'remote/modules/debug-report-bwlp/module.build') diff --git a/remote/modules/debug-report-bwlp/module.build b/remote/modules/debug-report-bwlp/module.build new file mode 100644 index 00000000..1be608b8 --- /dev/null +++ b/remote/modules/debug-report-bwlp/module.build @@ -0,0 +1,23 @@ +fetch_source() { + : +} + +build() { + + for BIN in $REQUIRED_BINARIES; do + OPT="${BIN:0:1}" + [[ "$BIN" == @* ]] && BIN=$(echo "$BIN" | cut -c 2-) + BIN_LOCATION=$(which ${BIN}) + if [ ! -z ${BIN_LOCATION} -a -e ${BIN_LOCATION} ]; then + tarcopy "$(get_link_chain ${BIN_LOCATION})" "${MODULE_BUILD_DIR}" + elif [ "$OPT" != "@" ]; then + perror "'${BIN}' not found on system." + else + pwarning "'${BIN}' not found on the system." + fi + done +} + +post_copy() { + : +} -- cgit v1.2.3-55-g7522