diff options
author | Jonathan Bauer | 2013-05-03 15:25:26 +0200 |
---|---|---|
committer | Jonathan Bauer | 2013-05-03 15:25:26 +0200 |
commit | 0859d1ec6b7ec92f0d145b38f86ef1fc9083151b (patch) | |
tree | 12358c5d6321a2e2e5221f1631dd7fba9e7a3769 /remote/setup_target | |
parent | minor (diff) | |
parent | Add support for wildcards in REQUIRED_KERNEL_MODULES (diff) | |
download | tm-scripts-0859d1ec6b7ec92f0d145b38f86ef1fc9083151b.tar.gz tm-scripts-0859d1ec6b7ec92f0d145b38f86ef1fc9083151b.tar.xz tm-scripts-0859d1ec6b7ec92f0d145b38f86ef1fc9083151b.zip |
rsyslog
Diffstat (limited to 'remote/setup_target')
-rwxr-xr-x | remote/setup_target | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/remote/setup_target b/remote/setup_target index 15938558..924450fd 100755 --- a/remote/setup_target +++ b/remote/setup_target @@ -213,8 +213,14 @@ process_module() { install_dependencies pinfo "## Fetching source" [ -e "${MODULE_DIR}/.fetched_source" ] || { fetch_source && touch "${MODULE_DIR}/.fetched_source"; } - pinfo "## Building" - [ -e "${MODULE_DIR}/.built" ] || { build && touch "${MODULE_DIR}/.built"; } + if [ -e "${MODULE_DIR}/.built" -a -d "${MODULE_DIR}/build" ]; then + pinfo "# built-flag is set, skipping build..." + else + pinfo "## Building" + mkdir -p "${MODULE_DIR}/build" || perror "Could not create build dir" + build # calls perror if something fails, no need to do that here + touch "${MODULE_DIR}/.built" || pwarning "Error setting built-flag" + fi # remove *.la files as they might confuse libtool/linker of other tool packages [ -d "${MODULE_BUILD_DIR}" ] && find "${MODULE_BUILD_DIR}" -name '*.la' -exec rm -f {} \; [ -d "${TARGET_BUILD_DIR}" ] && TARGET_BUILD_SIZE=$(du -bc "${TARGET_BUILD_DIR}" | awk 'END {print $1}') || TARGET_BUILD_SIZE=0 |