Mercurial > hg > chronicle
changeset 59:943499ebeaef
2007-10-25 18:43:41 by steve
Allow --config=file
author | steve |
---|---|
date | Thu, 25 Oct 2007 18:43:41 +0000 |
parents | dc184cb7036d |
children | 4af5f3ee59e8 |
files | bin/chronicle |
diffstat | 1 files changed, 10 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/chronicle Thu Oct 25 18:36:50 2007 +0000 +++ b/bin/chronicle Thu Oct 25 18:43:41 2007 +0000 @@ -11,6 +11,7 @@ Path Options: + --config Specify a configuration file to read. --input Specify the input directory to use. --output Specify the directory to write output to. --templates Specify the path to the theme templates. @@ -155,7 +156,7 @@ -- http://www.steve.org.uk/ - $Id: chronicle,v 1.24 2007-10-25 18:36:32 steve Exp $ + $Id: chronicle,v 1.25 2007-10-25 18:43:41 steve Exp $ =cut @@ -218,6 +219,12 @@ # +# Another configuration file? +# +readConfigurationFile( $CONFIG{'config'} ) if ( defined $CONFIG{'config'} ); + + +# # Should we run something before we start? # if ( $CONFIG{'pre-build'} ) @@ -433,6 +440,7 @@ "version", \$VERSION, # paths + "config=s", \$CONFIG{'config'}, "input=s", \$CONFIG{'input'}, "output=s", \$CONFIG{'output'}, "templates=s", \$CONFIG{'template'}, @@ -462,7 +470,7 @@ if ( $VERSION ) { - my $REVISION = '$Revision: 1.24 $'; + my $REVISION = '$Revision: 1.25 $'; if ( $REVISION =~ /1.([0-9.]+) / ) { $REVISION = $1;