summaryrefslogtreecommitdiff
path: root/demo/install-file.py
diff options
context:
space:
mode:
authorZeeshan Ali <zeenix@collabora.co.uk>2018-09-24 09:54:20 +0200
committerZeeshan Ali <zeenix@collabora.co.uk>2018-09-24 11:42:30 +0200
commitb8fa586f84c5fa485fe3924becc4ff2b08d55938 (patch)
treeeb193c48e764fbc229ac2ebbdbe9c43f8af200ee /demo/install-file.py
parent1aa301aadf2feeacf1c89cb55979aba00fdc9290 (diff)
downloadgeoclue-b8fa586f84c5fa485fe3924becc4ff2b08d55938.tar.gz
build: Install demo agent to autostart directory too
We were doing this already but forgot to port this from autotools to meson.
Diffstat (limited to 'demo/install-file.py')
-rw-r--r--demo/install-file.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/demo/install-file.py b/demo/install-file.py
new file mode 100644
index 0000000..f5db502
--- /dev/null
+++ b/demo/install-file.py
@@ -0,0 +1,13 @@
+#!/bin/python3
+
+# A simple script that copies given file (first arg) to a given location (second arg)
+
+import sys
+from shutil import copyfile
+
+if len(sys.argv) < 3:
+ print('Usage: ' + sys.argv[0] + ' SOURCE_PATH DESTINATION_PATH')
+
+ sys.exit(-1)
+
+copyfile(sys.argv[1], sys.argv[2])