summaryrefslogtreecommitdiffstats
path: root/src/template.d/install-wgt-on-target.sh.in
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2018-11-05 10:38:16 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2018-11-06 20:30:35 +0100
commit5f06de040287a5df88d21367da9e8725d8585ba1 (patch)
treebba4fb8aa6474b451f4f6f7af327c46ed6e181ae /src/template.d/install-wgt-on-target.sh.in
parentdcdff18c4f09406ca1ec522fbde3f6f7342d8423 (diff)
Adding packaging files
Change-Id: I70d30588c59e6a0d3c451c74fc6cc565b5eea167 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'src/template.d/install-wgt-on-target.sh.in')
-rwxr-xr-xsrc/template.d/install-wgt-on-target.sh.in19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/template.d/install-wgt-on-target.sh.in b/src/template.d/install-wgt-on-target.sh.in
new file mode 100755
index 0000000..39a69d5
--- /dev/null
+++ b/src/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
+