From 30f758925a8fe9b11f8c7f8e8326836009a121d4 Mon Sep 17 00:00:00 2001 From: Yaohan Chen Date: Tue, 1 Apr 2014 11:51:30 -0400 Subject: Add install script --- README | 3 ++- install.sh | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100755 install.sh 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" -- cgit v1.2.3-70-g09d2