From ce78c5efb30ce726ea603529ecdd0499c07626da Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Wed, 23 May 2012 00:54:35 +0000 Subject: Use autoconf to find rrdtool. svn path=/trunk/; revision=4509 --- buildtools/make-rcynic-script.py | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 buildtools/make-rcynic-script.py (limited to 'buildtools/make-rcynic-script.py') diff --git a/buildtools/make-rcynic-script.py b/buildtools/make-rcynic-script.py new file mode 100644 index 00000000..1bdd7960 --- /dev/null +++ b/buildtools/make-rcynic-script.py @@ -0,0 +1,32 @@ +""" +$Id$ + +Copyright (C) 2011-2012 Internet Systems Consortium ("ISC") + +Permission to use, copy, modify, and distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE +OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +""" + +import os +import sys + +sys.stdout.write('''\ +#!%(AC_PYTHON_INTERPRETER)s +# Automatically constructed script header + +ac_rrdtool_binary = "%(AC_RRDTOOL_BINARY)s" + +# Original script starts here + +''' % os.environ) + +sys.stdout.write(sys.stdin.read()) -- cgit v1.2.3