mirror of
https://codeberg.org/agap/gencal.git
synced 2026-03-21 18:44:25 -03:00
No description
- C 95.9%
- Makefile 4.1%
| man | ||
| .gitignore | ||
| bool.h | ||
| LICENSE | ||
| limits.h | ||
| main.c | ||
| Makefile | ||
| README.en.md | ||
| README.pt-br.md | ||
gencal
This is a flexible "CLI" generator of ".txt" calendars that by default follows the calendar convention suggested by Tero Karvinen in an article from his blog. Additionally, this generator it was written in ANSI C in order to achieve greater portability.
Thanks
In advance, I would like to thank @orahcio for recommending the article mentioned above to me, because so far it serves me very well.
Installation (*nix-like)
To compile and install gencal on a machine, after downloading the
project repository, simply run the following command lines in a
terminal:
$ make
# make install
Usage
When invoked without arguments, gencal prints to stdout a calendar of the
current year according to the style suggested by Karvinen:
$ gencal # example
2026
2026-01
2026-01-01 w00 Thu
2026-01-02 w00 Fri
2026-01-03 w00 Sat
(...)
2026-12-28 w52
2026-12-28 w52 Mon
2026-12-29 w52 Tue
2026-12-30 w52 Wed
2026-12-31 w52 Thu
References
For those who may be interested, references linked to this project are listed below.
- Calendar.txt
- The ANSI C Programming Language
man 1 gencalfor more information about the program.