From a71ae42ab3d3cb25ec2c8491d9846477b7ee2146 Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Dec 26 2013 23:05:01 +0000 Subject: Update prepare module from tcar script. - Previously, prepare module was reading the workplace absolute path from non-option arguments provided in the command-line. In case more than one argument was provided in the command-line, prepare module didn't recognize them. This update changes prepare.sh to recognize each non-option argument provided in the command-line and create one workplace for each of them. --- diff --git a/tcar-scripts-prepare/prepare.sh b/tcar-scripts-prepare/prepare.sh index df137f7..5ddf768 100755 --- a/tcar-scripts-prepare/prepare.sh +++ b/tcar-scripts-prepare/prepare.sh @@ -43,11 +43,8 @@ function prepare { prepare_getOptions - # Define absolute path to workplace. The workplace is where final - # images produced from source files will be stored and organized - # in. - local TCAR_WORKDIR=${TCAR_SCRIPT_ARGUMENT} - - prepare_setWorkplace + for TCAR_WORKDIR ${TCAR_SCRIPT_ARGUMENT};do + prepare_setWorkplace + done }