Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMike Gerwitz <gerwitzm@lovullo.com>2017-08-28 12:58:38 -0400
committerMike Gerwitz <gerwitzm@lovullo.com>2017-08-29 14:56:13 -0400
commitc92e9790001a1a8a6d4964bbd13ef2557e72cb79 (patch)
tree8e428375209ca7cb136d4cf540674aa3dfb256bb /bin
parent985819c31ba8151be9f572a955b8e6e31432911e (diff)
downloadliza-c92e9790001a1a8a6d4964bbd13ef2557e72cb79.tar.gz
liza-c92e9790001a1a8a6d4964bbd13ef2557e72cb79.tar.bz2
liza-c92e9790001a1a8a6d4964bbd13ef2557e72cb79.zip
Add bin/server to invoke server using configure'd node
* .gitignore (bin/server): Ignore generated file. * bin/server.in: Add script. * configure.ac: (NODE): Correct description (capitalize `Node'). (NODE_FLAGS): Add arg var. (NODE_DESTRUCTURE): Use determined node path for test. (AUTOGENERATED): Add substitution. (AC_CONFIG_FILES): Add bin/server. Make it executable.
Diffstat (limited to 'bin')
-rw-r--r--bin/server.in32
1 files changed, 32 insertions, 0 deletions
diff --git a/bin/server.in b/bin/server.in
new file mode 100644
index 0000000..9ecc856
--- /dev/null
+++ b/bin/server.in
@@ -0,0 +1,32 @@
+#!/bin/sh
+# Start Liza Server using Node.js executable determined at configure-time
+#
+# Copyright (C) 2017 R-T Specialty, LLC.
+#
+# This file is part of liza.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+# In addition to the configure-time NODE_FLAGS, the NODE_FLAGS environment
+# variable can be used to add additional arguments to this script.
+# WARNING: NODE_FLAGS arguments provided via environment varialbes are _not_
+# escaped, so be mindful of word expansion!
+#
+# @AUTOGENERATED@
+##
+
+cd "$( dirname $( readlink -f "$0" ) )"
+
+"@NODE@" @NODE_FLAGS@ $NODE_FLAGS server.js "$@"
+