# HG changeset patch # User steve # Date 1193337821 0 # Node ID 943499ebeaefce78fee14e348a91ba31cb7befe6 # Parent dc184cb7036df887f255cf86d74610f54796aa11 2007-10-25 18:43:41 by steve Allow --config=file diff -r dc184cb7036d -r 943499ebeaef bin/chronicle --- 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;