Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore4
-rw-r--r--bin/delta-processor.in33
-rw-r--r--bin/delta-processor.ts22
-rw-r--r--bin/server.ts (renamed from bin/server.js)0
-rw-r--r--configure.ac4
-rw-r--r--tsconfig.json1
6 files changed, 62 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index 61aba11..dcc8f16 100644
--- a/.gitignore
+++ b/.gitignore
@@ -8,6 +8,7 @@ Makefile.in
# generated by configure
bin/server
+bin/delta-processor
src/version.js
/config.*
Makefile
@@ -27,6 +28,7 @@ src/**/index.js
# npm
node_modules
-# typescript
+# typescript output
+bin/delta-processor.js
tsconfig.tsbuildinfo
diff --git a/bin/delta-processor.in b/bin/delta-processor.in
new file mode 100644
index 0000000..f0984e1
--- /dev/null
+++ b/bin/delta-processor.in
@@ -0,0 +1,33 @@
+#!/bin/sh
+# Start Liza delta processor using Node.js executable determined at
+# configure-time
+#
+# Copyright (C) 2010-2019 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" ) )"
+
+exec "@NODE@" @NODE_FLAGS@ $NODE_FLAGS delta-processor.js "$@"
+
diff --git a/bin/delta-processor.ts b/bin/delta-processor.ts
new file mode 100644
index 0000000..535bb51
--- /dev/null
+++ b/bin/delta-processor.ts
@@ -0,0 +1,22 @@
+/**
+ * Start the Liza delta processor
+ *
+ * Copyright (C) 2010-2019 R-T Specialty, LLC.
+ *
+ * This file is part of the Liza Data Collection Framework.
+ *
+ * liza 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/>.
+ */
+
+console.log( 'Nothing to see here yet.' );
diff --git a/bin/server.js b/bin/server.ts
index ec93fb7..ec93fb7 100644
--- a/bin/server.js
+++ b/bin/server.ts
diff --git a/configure.ac b/configure.ac
index 1f1675f..3a0fbc5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,6 +1,6 @@
## For use my automake and autoconf
#
-# Copyright (C) 2014--2017 R-T Specialty, LLC.
+# Copyright (C) 2010-2019 R-T Specialty, LLC.
#
# This file is part of liza.
#
@@ -88,6 +88,8 @@ AC_CONFIG_FILES([Makefile package.json
src/version.js])
AC_CONFIG_FILES([bin/server],
[chmod +x bin/server])
+AC_CONFIG_FILES([bin/delta-processor],
+ [chmod +x bin/delta-processor])
AC_OUTPUT
diff --git a/tsconfig.json b/tsconfig.json
index 83b8f5e..ee03891 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -18,6 +18,7 @@
}
},
"include": [
+ "bin/*",
"src/**/*",
"test/**/*"
]