diff options
author | Rob Austein <sra@hactrn.net> | 2012-05-23 00:54:35 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2012-05-23 00:54:35 +0000 |
commit | ce78c5efb30ce726ea603529ecdd0499c07626da (patch) | |
tree | cbe5754d225ce30f7bad00148f58eb6f45986837 /buildtools/make-rcynic-script.py | |
parent | 4dddc12cfdaf35f5f3c852b48a3d38b7ee25aaed (diff) |
Use autoconf to find rrdtool.
svn path=/trunk/; revision=4509
Diffstat (limited to 'buildtools/make-rcynic-script.py')
-rw-r--r-- | buildtools/make-rcynic-script.py | 32 |
1 files changed, 32 insertions, 0 deletions
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()) |