From e450bbb3d69df34ba2da62fe78b7ef65bfab7efc Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Mon, 11 Nov 2019 15:37:01 -0500 Subject: [PATCH] bin/delta-processor: Placeholder script --- .gitignore | 4 +++- bin/delta-processor.in | 33 +++++++++++++++++++++++++++++++++ bin/delta-processor.ts | 22 ++++++++++++++++++++++ bin/{server.js => server.ts} | 0 configure.ac | 4 +++- tsconfig.json | 1 + 6 files changed, 62 insertions(+), 2 deletions(-) create mode 100644 bin/delta-processor.in create mode 100644 bin/delta-processor.ts rename bin/{server.js => server.ts} (100%) 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 . +# +# 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 . + */ + +console.log( 'Nothing to see here yet.' ); diff --git a/bin/server.js b/bin/server.ts similarity index 100% rename from bin/server.js rename to 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/**/*" ]