diff options
author | Rob Austein <sra@hactrn.net> | 2013-02-01 03:17:34 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2013-02-01 03:17:34 +0000 |
commit | 1750b16a9ab7b208de25a1deafbd610dfd38e7f5 (patch) | |
tree | fb67737cc0647b2f52f1cc30cb09ef594a5f99cf /buildtools/make-rcynic-script.py | |
parent | 9f9f731c1318c27a1026408edee93c72d3c5a52a (diff) |
Add rcynic-cron.
svn path=/branches/tk377/; revision=4998
Diffstat (limited to 'buildtools/make-rcynic-script.py')
-rw-r--r-- | buildtools/make-rcynic-script.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/buildtools/make-rcynic-script.py b/buildtools/make-rcynic-script.py index 1bdd7960..472faa98 100644 --- a/buildtools/make-rcynic-script.py +++ b/buildtools/make-rcynic-script.py @@ -1,7 +1,7 @@ """ $Id$ -Copyright (C) 2011-2012 Internet Systems Consortium ("ISC") +Copyright (C) 2011-2013 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 @@ -23,10 +23,16 @@ sys.stdout.write('''\ #!%(AC_PYTHON_INTERPRETER)s # Automatically constructed script header -ac_rrdtool_binary = "%(AC_RRDTOOL_BINARY)s" +''' % os.environ) + +for k, v in os.environ.iteritems(): + if k.startswith("AC_") and k != "AC_PYTHON_INTERPRETER": + sys.stdout.write("%s = '''%s'''\n" % (k.lower(), v)) + +sys.stdout.write('''\ # Original script starts here -''' % os.environ) +''') sys.stdout.write(sys.stdin.read()) |