summaryrefslogtreecommitdiffstats
path: root/remote/setup_tools
diff options
context:
space:
mode:
authorJonathan Bauer2013-03-15 16:22:27 +0100
committerJonathan Bauer2013-03-15 16:22:27 +0100
commit1dcb4490c11adeabefd13a90be78832828ca0cd3 (patch)
tree256106cf0be54b3f4d91fd59735e36e7af36c268 /remote/setup_tools
parentdeleted (diff)
downloadtm-scripts-1dcb4490c11adeabefd13a90be78832828ca0cd3.tar.gz
tm-scripts-1dcb4490c11adeabefd13a90be78832828ca0cd3.tar.xz
tm-scripts-1dcb4490c11adeabefd13a90be78832828ca0cd3.zip
targets and builds
Diffstat (limited to 'remote/setup_tools')
-rwxr-xr-xremote/setup_tools10
1 files changed, 5 insertions, 5 deletions
diff --git a/remote/setup_tools b/remote/setup_tools
index b554f448..713d03fd 100755
--- a/remote/setup_tools
+++ b/remote/setup_tools
@@ -124,7 +124,7 @@ copyfileswithdependencies () {
pdebug "[stage32] File list generated at ${MODULE_BUILD_DIR}/${COPYFILES_LIST}."
if [ -s "$COPYFILES_LIST" ]; then
local CLISTCOUNT=$(cat "$COPYFILES_LIST" | wc -l)
- pinfo "Copying $CLISTCOUNT files to stage 3.2 target directory."
+ pinfo "Copying $CLISTCOUNT files to '${TARGET_BUILD_DIR}'."
tarcopy "$(cat "$COPYFILES_LIST"|sort -u)" "${TARGET_BUILD_DIR}"
fi
}
@@ -137,10 +137,10 @@ generate_target() {
perror "Target directory cannot be named 'build' nor 'modules'."
# check for target directory
- TARGET_DIR="${MODE_DIR}/${TARGET}"
+ TARGET_DIR="${MODE_DIR}/targets/${TARGET}"
[ -d $TARGET_DIR ] || perror "Given target directory does not exist: $TARGET"
- TARGET_BUILD_DIR="${MODE_DIR}/build/${TARGET}"
+ TARGET_BUILD_DIR="${MODE_DIR}/builds/${TARGET}"
pinfo "Generating '$TARGET_BUILD_DIR' for '$TARGET'"
@@ -171,10 +171,10 @@ generate_target() {
process_module() {
[ "$#" -ne "1" ] && perror "process_module: want 1 param."
local MODULE="$1"
- local MODULE_DIR="${TARGET_DIR}/${MODULE}"
- local MODULE_BUILD_DIR="${MODULE_DIR}/build"
[[ "$PROCESSED_MODULES" == *"!${MODULE}!"* ]] && return # Already processed this module
PROCESSED_MODULES="${PROCESSED_MODULES}!${MODULE}!"
+ local MODULE_DIR="${TARGET_DIR}/${MODULE}"
+ local MODULE_BUILD_DIR="${MODULE_DIR}/build"
local TOOL_STR=""
pinfo ">>>>>>>>>>>>>>>>> Processing module [ $MODULE ]"
TOOL_STR="[${MODULE}]"