Address internal 3105 and (partially) 3016.  Enhance dprepro with long options --left-delimiter --right-delimiter and --output-format, each of which takes a string.  Full documentation for dprepro with this change (output of `dprepro --man`) follows.
Address internal 3105 and (partially) 3016.  Enhance dprepro with long options --left-delimiter --right-delimiter and --output-format, each of which takes a string.  Full documentation for dprepro with this change (output of `dprepro --man`) follows.

Also adding commented use of Math::Trig and POSIX for users who might need additional functions for eval, such as floor, ceil, round, etc.

Request help testing from anyone with ready to go use cases.

-----

DPREPRO(1)            User Contributed Perl Documentation           DPREPRO(1)

NAME
       dprepro - A Perl pre-processor for manipulating input files with
       DAKOTA.

SYNOPSIS
       dprepro [options] parameters_file template_input_file new_input_file

OPTIONS
       --help
           print brief help message

       --man
           print full manual page and exit

       --left-delimiter=string, --right-delimiter=string
           override the default curly brace delimiters { and }; these may need
           to be quoted or escaped on the command line, e.g.,
             require escaping with backslash: ` $ #
             require quotes or escaping: \ ' ( ) |

       --output-format=string
           use the specified C-style format specification string for numeric
           output in all substitutions; also may need to be quoted or escaped

DESCRIPTION
       Reads the variable tags and values from the parameters_file and then
       replaces each appearance of "{tag}" in the template_input_file with its
       associated value in order to create the new_input_file.  The parame-
       ters_file written by DAKOTA may either be in standard format (using
       "value tag" constructs) or in "aprepro" format (using "{ tag = value }"
       constructs), and the variable tags used inside template_input_file must
       match the variable descriptors specified in the DAKOTA input file.
       Supports assignments and numerical expressions in the template file,
       and the parameters file takes precedence in the case of duplicate
       assignments (so that template file assignments can be treated as
       defaults to be overridden).

       basic operation
           dprepro params.in app.template app.input

       specifying output format
           dprepro --output-format='%10.5f' params.in app.template app.input

       specifying double brackets as delimiters
           dprepro --left-delimiter='[[' --right-delimiter=']]' params.in
           app.template app.input


git-svn-id: c6750f7dd89925e309f580f56430152d063ff36c@679 aa0779c3-6ec2-4b84-a212-a405c134cd8d

pemryan/DAKOTA,pemryan/DAKOTA,pemryan/DAKOTA,pemryan/DAKOTA,pemryan/DAKOTA,pemryan/DAKOTA,pemryan/DAKOTA