diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-08-10 18:25:48 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2018-10-15 18:22:47 +0200 |
commit | 3262bd7940fcf09305ebf7952b12c63f85c7682c (patch) | |
tree | 1dedf56817766fbab52ca6954b803de2cf3d92ba /template.d/install-wgt-on-target.sh.in | |
parent | ecd8dcced06c00f7c0231806eab68a1e0b2fbafc (diff) |
Extending pluggable arch for templates
Idea is to be able to use custom templates from home dir and system dir
Change-Id: I74b48458f3dcc26b49f8144e042c213691028167
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'template.d/install-wgt-on-target.sh.in')
-rwxr-xr-x | template.d/install-wgt-on-target.sh.in | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/template.d/install-wgt-on-target.sh.in b/template.d/install-wgt-on-target.sh.in new file mode 100755 index 0000000..39a69d5 --- /dev/null +++ b/template.d/install-wgt-on-target.sh.in @@ -0,0 +1,19 @@ +#!/bin/sh +# +# File: install-wgt-on-target.sh +# Author: Sebastien Douheret @ IoT.bzh +# Object: install widget on target +# Created on 24-May-2017, 09:23:37 +# Usage: + +# Do not change manually use 'make remote-target-populate' +export RSYNC_TARGET=@RSYNC_TARGET@ +export WGT_FILE_L=@CMAKE_CURRENT_BINARY_DIR@/@PROJECT_NAME@.wgt +export WGT_FILE_T=/tmp/@PROJECT_NAME@.wgt + +scp $WGT_FILE_L $RSYNC_TARGET:$WGT_FILE_T \ + && ssh -o "StrictHostKeyChecking no" -tt $RSYNC_TARGET -- \ + afm-util install $WGT_FILE_T + +# && rm -f $WGT_FILE_T + |