summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README3
-rwxr-xr-xinstall.sh7
2 files changed, 9 insertions, 1 deletions
diff --git a/README b/README
index ce309da..65e9b18 100644
--- a/README
+++ b/README
@@ -25,7 +25,8 @@ it to look for scripts and the configuration file in the current directory.
By default hib-dlagent assumes the .coffee scripts are installed in
/usr/share/hib-dlagent, and the .json configuration file is installed in
-/etc/hib-dlagent. If they are installed in other locations, it is necessary
+/etc/hib-dlagent. The provided install.sh will install files into these
+locations. If they are installed in other locations, it is necessary
to either run hib-dlagent with the correct -S and -c parameters, or edit the
variables SCRIPT_PATH and CONFIG_PATH in hib-dlagent.
diff --git a/install.sh b/install.sh
new file mode 100755
index 0000000..8f4f99e
--- /dev/null
+++ b/install.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+install -D -m755 hib-dlagent "$DEST/usr/bin/hib-dlagent"
+install -D -m644 README "$DEST/usr/share/doc/hib-dlagent/README"
+install -D -m644 discover-url.coffee "$DEST/usr/share/hib-dlagent/discover-url.coffee"
+install -D -m644 util.coffee "$DEST/usr/share/hib-dlagent/util.coffee"
+install -D -m644 phantomjs-config.json "$DEST/etc/hib-dlagent/phantomjs-config.json"