39a69d5128b7204f59a17d4ba07a7ddf7048aa7a
[apps/agl-service-data-persistence.git] / ll-database-binding / conf.d / app-templates / template.d / install-wgt-on-target.sh.in
1 #!/bin/sh
2 #
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
7 # Usage:
8
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
13
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
17
18 #    && rm -f $WGT_FILE_T
19