Subversion Repositories DevTools

Rev

Rev 4420 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

@rem run_crucible_reporting.cmd
@rem Wrapper script for the python script for crucible reporting.
@echo off

set PYTHON_EXE=c:\python27\python.exe
if not exist %PYTHON_EXE% (
    echo Install Python 2.7 from the following URL:
    echo https://www.python.org/ftp/python/2.7.7/python-2.7.7.msi
    goto :end
)

if "%1" equ "--usage" (
    %PYTHON_EXE% crucible_reporting.py --usage
) else if "%1" neq "" (
    echo Report for month will be generated to %1.txt
    %PYTHON_EXE% crucible_reporting.py %1 > %1.txt
) else (
    echo Report for previous month will be generated to standard output
    %PYTHON_EXE% crucible_reporting.py 
)

:end