3 # File: install-wgt-on-target.sh
4 # Author: Sebastien Douheret @ IoT.bzh
5 # Object: install widget on target
6 # Created on 24-May-2017, 09:23:37
9 # Do not change manually use 'make remote-target-populate'
10 export RSYNC_TARGET=@RSYNC_TARGET@
11 export WGT_FILE_L=@CMAKE_CURRENT_BINARY_DIR@/@PROJECT_NAME@.wgt
12 export WGT_FILE_T=/tmp/@PROJECT_NAME@.wgt
14 scp $WGT_FILE_L $RSYNC_TARGET:$WGT_FILE_T \
15 && ssh -o "StrictHostKeyChecking no" -tt $RSYNC_TARGET -- \
16 afm-util install $WGT_FILE_T
18 # && rm -f $WGT_FILE_T