From e1ef035594fc80baaf5cd571ab4d04023309a906 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Thu, 10 Aug 2017 18:25:48 +0200 Subject: 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 --- template.d/install-wgt-on-target.sh.in | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 template.d/install-wgt-on-target.sh.in (limited to 'template.d/install-wgt-on-target.sh.in') 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 + -- cgit 1.2.3-korg