File tree Expand file tree Collapse file tree 3 files changed +3
-9
lines changed
scripts/reports/compilations Expand file tree Collapse file tree 3 files changed +3
-9
lines changed Original file line number Diff line number Diff line change 33# Runs all report scripts.
44# It only consideres scripts in the "reports" directory (overridable with REPORTS_SCRIPT_DIR) one directory above this one.
55
6- # # Get this "reports/compilations" directory if not already set.
6+ # # Get this "scripts/ reports/compilations" directory if not already set.
77# Even if $BASH_SOURCE is made for Bourne-like shells it is also supported by others and therefore here the preferred solution.
88# CDPATH reduces the scope of the cd command to potentially prevent unintended directory changes.
99# This way non-standard tools like readlink aren't needed.
1010REPORT_COMPILATIONS_SCRIPT_DIR=${REPORT_COMPILATIONS_SCRIPT_DIR:- $( CDPATH=. cd -- " $( dirname -- " ${BASH_SOURCE[0]} " ) " && pwd -P )}
11- # The following solution should work in most shells but returns the (wrong) path of the caller when using "source" to call.
12- # REPORT_COMPILATIONS_SCRIPT_DIR=${REPORT_COMPILATIONS_SCRIPT_DIR:-$( CDPATH=. cd -- "$(dirname -- "$0")" && pwd -P)}
1311echo " AllReports: REPORT_COMPILATIONS_SCRIPT_DIR=${REPORT_COMPILATIONS_SCRIPT_DIR} "
1412
1513REPORTS_SCRIPT_DIR=${REPORTS_SCRIPT_DIR:- $(dirname -- " ${REPORT_COMPILATIONS_SCRIPT_DIR} " )}
Original file line number Diff line number Diff line change 33# Runs all CSV report scripts (no Python and Chromium required).
44# It only consideres scripts in the "reports" directory (overridable with REPORTS_SCRIPT_DIR) one directory above this one.
55
6- # # Get this "reports/compilations" directory if not already set.
6+ # # Get this "scripts/ reports/compilations" directory if not already set.
77# Even if $BASH_SOURCE is made for Bourne-like shells it is also supported by others and therefore here the preferred solution.
88# CDPATH reduces the scope of the cd command to potentially prevent unintended directory changes.
99# This way non-standard tools like readlink aren't needed.
1010REPORT_COMPILATIONS_SCRIPT_DIR=${REPORT_COMPILATIONS_SCRIPT_DIR:- $( CDPATH=. cd -- " $( dirname -- " ${BASH_SOURCE[0]} " ) " && pwd -P )}
11- # The following solution should work in most shells but returns the (wrong) path of the caller when using "source" to call.
12- # REPORT_COMPILATIONS_SCRIPT_DIR=${REPORT_COMPILATIONS_SCRIPT_DIR:-$( CDPATH=. cd -- "$(dirname -- "$0")" && pwd -P)}
1311echo " CsvReports: REPORT_COMPILATIONS_SCRIPT_DIR=${REPORT_COMPILATIONS_SCRIPT_DIR} "
1412
1513REPORTS_SCRIPT_DIR=${REPORTS_SCRIPT_DIR:- $(dirname -- " ${REPORT_COMPILATIONS_SCRIPT_DIR} " )}
Original file line number Diff line number Diff line change 66# For PDF generation chromium is required additionally.
77# Therefore these reports will take longer and require more ressources than just plain database queries/procedures.
88
9- # # Get this "reports/compilations" directory if not already set.
9+ # # Get this "scripts/ reports/compilations" directory if not already set.
1010# Even if $BASH_SOURCE is made for Bourne-like shells it is also supported by others and therefore here the preferred solution.
1111# CDPATH reduces the scope of the cd command to potentially prevent unintended directory changes.
1212# This way non-standard tools like readlink aren't needed.
1313REPORT_COMPILATIONS_SCRIPT_DIR=${REPORT_COMPILATIONS_SCRIPT_DIR:- $( CDPATH=. cd -- " $( dirname -- " ${BASH_SOURCE[0]} " ) " && pwd -P )}
14- # The following solution should work in most shells but returns the (wrong) path of the caller when using "source" to call.
15- # REPORT_COMPILATIONS_SCRIPT_DIR=${REPORT_COMPILATIONS_SCRIPT_DIR:-$( CDPATH=. cd -- "$(dirname -- "$0")" && pwd -P)}
1614echo " JupyterReports: REPORT_COMPILATIONS_SCRIPT_DIR=${REPORT_COMPILATIONS_SCRIPT_DIR} "
1715
1816REPORTS_SCRIPT_DIR=${REPORTS_SCRIPT_DIR:- $(dirname -- " ${REPORT_COMPILATIONS_SCRIPT_DIR} " )}
You can’t perform that action at this time.
0 commit comments