|
analog-fiscal-year.pl - Generate command line options for fiscal year reports in Analog |
The source is available in a pretty-format HTML page and as a raw text file.
analog-fiscal-year.pl - Generate command line options for fiscal year reports in Analog
analog -Ostats/fy`analog-fiscal-year.pl -e .html`
This program outputs a string of date ranges so that Analog will generate a web server report based on a fiscal year criteria. Since our fiscal years do not match calendar years, Analog's time-based restrictions can't do this for us. Use this program to supply commandline parameters to analog as it runs to generate a statistics file. On July 1st of each year, the output automatically rolls to the next fiscal year.
Fiscal years are assumed to start on July 1st, and the label for the fiscal year is assumed to be the last in the range (e.g. July 1st, 2002 is in fiscal year 2003).
EXAMPLES.
To generate a report for this fiscal year, use this command line:
analog -Ostats/fy`analog-fiscal-year.pl -e .html`
If today is July 19th, 2002, the program will generate this string:
2003.html +F020701 +T030630
Resulting in the final analog command line of:
analog -Ostats/fy2003.html +F020701 +T030630
To generate a report for a previous fiscal year, use this command line:
analog -Ostats/fy`analog-fiscal-year.pl -e .html -d 10/2001`
analog(1)
Updates to this program can be found at http://www.pandc.org/peter/work/projects/analog-fiscal-year/
Peter Murray, University of Connecticut School of Law, http://www.pandc.org/peter/work/
|
analog-fiscal-year.pl - Generate command line options for fiscal year reports in Analog |