summaryrefslogtreecommitdiffstats
path: root/wgt/install-wgt-on-target.sh.in
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-07-07 12:04:20 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2018-10-15 18:22:47 +0200
commit3aa6c913a88f129413f9f66ba7dd97142e25e9b7 (patch)
tree4186699530fcce55a815994207226db8447427cc /wgt/install-wgt-on-target.sh.in
parentac1959f4cc99976e28fd121132ff290d9a709af6 (diff)
Fix: wrong extension of configured files
Remove the ".in" template extension from filenames which have to be correctly named. Change-Id: I8128f5fa64d5fa914a717c18fbba14fc43de4935 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'wgt/install-wgt-on-target.sh.in')
-rw-r--r--wgt/install-wgt-on-target.sh.in19
1 files changed, 19 insertions, 0 deletions
diff --git a/wgt/install-wgt-on-target.sh.in b/wgt/install-wgt-on-target.sh.in
new file mode 100644
index 0000000..39a69d5
--- /dev/null
+++ b/wgt/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
+