A simple bash script that generates a monthly printout calendar template to be used between an employer and employee
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

47 lines
1.4 KiB

# monthly-attendace-paper - A simple bash script that generates a monthly
# printout template to be used between an employer and employee.
#
# Written in 2017-2020 by Franco Masotti/frnmst <franco.masotti@live.com>
#
# To the extent possible under law, the author(s) have dedicated all
# copyright and related and neighboring rights to this software to the public
# domain worldwide. This software is distributed without any warranty.
#
# You should have received a copy of the CC0 Public Domain Dedication along
# with this software. If not, see
# <http://creativecommons.org/publicdomain/zero/1.0/>.
# Days of week.
MON="Monday"
TUE="Tuesday"
WED="Wednesday"
THU="Thursday"
FRI="Friday"
SAT="Saturday"
SUN="Sunday"
# Month and year currently considered.
THIS_MONTH=02
THIS_YEAR=2020
# Header.
TITLE='Monthly attendance paper printout'
EMPLOYER="Employer: THE EMPLOYER"
EMPLOYEE="Employee: THE EMPLOYEE"
DATE_ID="Month and Year: "${THIS_MONTH}" ${THIS_YEAR}"
DAY_COLUMN_HEADER="Date/Month Day"
ARGS_COLUMN_HEADER="Worked Hours / Entry time - Exit time"
FORMAT="Format: \"${DAY_COLUMN_HEADER} ${ARGS_COLUMN_HEADER}\""
HIGHLITED_DAY='SUN'
HIGHLITED_DAY_DELIMITER='||'
NON_HIGHLITED_DAY_DELIMITER=' '
# Formatting.
## Tabulations and newlines.
TABULATION_FOR_STANDARD_DAYS='printf \t\t\t'
# Irregular days are 31th and 29th Februaries.
TABULATION_FOR_IRREGULAR_DAYS='printf \t\t'
NEWLINE='printf \n\n\n'