]> git.donarmstrong.com Git - bin.git/commitdiff
* add tex-only optino
authorDon Armstrong <don@donarmstrong.com>
Tue, 14 Sep 2010 21:20:10 +0000 (21:20 +0000)
committerDon Armstrong <don@donarmstrong.com>
Tue, 14 Sep 2010 21:20:10 +0000 (21:20 +0000)
make_invoice

index c0d79badc06b6b03eae696a6560d05ba18b6decc..7494e2a2a06168c753f84bffb832c33f85d8fca4 100755 (executable)
@@ -105,6 +105,7 @@ my %options = (log             => undef,
               help            => 0,
               man             => 0,
               log_only        => 0,
+              tex_only        => 0,
               );
 
 GetOptions(\%options,
@@ -113,6 +114,7 @@ GetOptions(\%options,
           'time_interval|min-time-interval|T=s',
           'hourly_fee|hourly-fee|f=s',
           'log_only|log-only',
+          'tex_only|tex-only',
           'debug|d+','help|h|?','man|m');
 
 pod2usage() if $options{help};
@@ -263,6 +265,12 @@ if ($options{log_only}) {
     exit 0;
 }
 
+if ($options{tex_only}) {
+    print $tex_invoice;
+    exit 0;
+}
+
+
 my $invoice_date = strftime('%Y_%m_%d',localtime($last_date));
 my $invoice_dir = "invoice_$invoice_date";