1
0
Fork 0
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%
Find a file
2026-02-22 14:50:22 -03:00
man Add en documentation for -Fx parameter 2026-02-22 13:35:03 -03:00
.gitignore Ignore bin directory and *txt files in gitignore 2026-02-22 11:33:41 -03:00
bool.h Add w/m/y format omission 2026-02-21 13:30:48 -03:00
LICENSE Initial commit 2026-02-20 01:32:57 +01:00
limits.h Add local weekday names CLI treatment 2026-02-21 17:45:56 -03:00
main.c Add *FORMAT variables personalization by CLI arguments 2026-02-22 12:38:32 -03:00
Makefile Complete Makefile 2026-02-22 12:05:27 -03:00
README.en.md Renamed: README.en-us.md -> README.en.md 2026-02-22 14:50:22 -03:00
README.pt-br.md Complete pt-br README 2026-02-22 14:44:07 -03:00

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.