Inject tidlc path
[scm/meta/abs.git] / build.template
index 84ddb56..2ce886e 100644 (file)
@@ -60,6 +60,10 @@ if [[ ! $rs_list =~ [0-9]{8}_[0-9] ]]; then
   echo ${rs_list}.${dateversion} > $SHARE_ROOT/rsver
 fi
 
+# Inject tidlc path
+TIDLC_PATH=`sed -n '/tidl/p' /home/build/.bashrc | cut -f2 -d':'`
+if [ ! -z ${TIDLC_PATH} ]; then echo "PATH=\$PATH:${TIDLC_PATH}" >> /home/build/.profile; fi
+
 for rs in $rs_list; do
   echo "BUILDING START TIME: `date`"
   #if [[ $rs == *"64.core"* ]]; then