Modernizing calendar(1) (was: svn commit: r365984 - head/usr.bin/calendar/calendars)

Julian H. Stacey jhs at berklix.com
Thu Oct 22 15:15:05 UTC 2020


Sorry for coming late to thread, I've been travelling then catching up.


"Greg 'groggy' Lehey" wrote: Wed, 21 Oct 2020 12:23:23 +1100

> On Monday, 19 October 2020 at 22:46:56 -0600, Warner Losh wrote:
> > On Mon, Oct 19, 2020 at 9:54 PM Greg 'groggy' Lehey <grog at freebsd.org> wrote:
> >> This shows the procedural approach.  But what do we really want?  I
> >> think that we should agree that we don't want to remove functionality,
> >> just bring things into the 21st century.  As I see it, there are three
> >> approaches:
> >>
> >> 1. Nobody cares enough about it, so leave it as it is.
> >>
> >>    Given the lack of input on the subject, this might be the best
> >>    choice.  It's certainly the easiest.  But it leaves a lot of dead
> >>    wood and unbalanced and incorrect content.
> >
> > Nah, people want the crusty old files of it gone. Trust me.
> 
> It seems that I'll have to.  Nobody else has mentioned this recently,
> and we don't have enough clarity on what "crusty old files" means.

Some errors include: 
- mixing up religious days versus state defined public holidays in wrong files
- failing to explicitly state if just religios or guaranteed day of work
  (locals may know, but visitors planning ahead to another country may not)
- some holiday only valid within parts of a country eg in some German regions),
- spurious listing of obscure american events in international,
- uneven priority of major & minor events,
- insufficient skeletal structure to move stuff & include extra by
	country/region/city/interest_eg_tech_arts

I submitted & got a few fixes commited (eg wrong definition of
easter or some easter related in Austria not Germany I recall, was
one) but many remain.

A lot of the calendars failed in many ways for years, but it'd have
been like kicking a dead whale up a beach to find & convince others who
have commit bits to tackle the un-inspiring job of loads of commits
to regularise & correct & update many calendar files. 

Years ago I started my own tree of diffs & new files which 
I auto. apply to src/ of each new release since I started, using
my own customise shell
  http://berklix.com/~jhs/bin/.csh/customise
but of course one can hand apply any diff.

http://www.berklix.com/~jhs/src/bsd/fixes/FreeBSD/src/gen/usr.bin/calendar/
	Makefile.REL=10.3-RELEASE.diff
	Makefile.REL=10.3-STABLE.diff
	Makefile.REL=10.4-RELEASE.diff
	Makefile.REL=11.2-RELEASE.diff
	Makefile.REL=12.1-RELEASE.diff
	Makefile.REL=12.2-STABLE.diff
	Makefile.REL=7.4-RELEASE.diff
	Makefile.REL=8.4-RELEASE.diff
	Makefile.REL=9.2-RELEASE.diff
	Makefile.REL=9.3-RELEASE.diff
	Makefile.REL=CURRENT.diff
	README.JHS
	calendar.1.REL=ALL.diff
	calendar.1.dir.REL=9.1-RELEASE.diff
	calendar.c.JJLATER
	calendars
	calendars/calendar.all.REL=10.3-RELEASE.diff
	calendars/calendar.all.REL=10.3-STABLE.diff
	calendars/calendar.all.REL=10.4-RELEASE.diff
	calendars/calendar.all.REL=11.2-RELEASE.diff
	calendars/calendar.all.REL=12.1-RELEASE.diff
	calendars/calendar.all.REL=12.2-STABLE.diff
	calendars/calendar.all.REL=7.4-RELEASE.diff
	calendars/calendar.all.REL=8.4-RELEASE.diff
	calendars/calendar.all.REL=9.2-RELEASE.diff
	calendars/calendar.all.REL=9.3-RELEASE.diff
	calendars/calendar.all.REL=CURRENT.diff
	calendars/calendar.british
	calendars/calendar.history
	calendars/calendar.holiday
	calendars/calendar.holiday.send-pr
	calendars/de_AT.ISO_8859-15
	calendars/de_AT.ISO_8859-15/calendar.feiertag.REL=10.4-RELEASE.diff
	calendars/de_AT.ISO_8859-15/calendar.feiertag.REL=11.2-RELEASE.diff
	calendars/de_AT.ISO_8859-15/calendar.feiertag.REL=8.4-RELEASE.diff
	calendars/de_AT.ISO_8859-15/calendar.feiertag.REL=9.2-RELEASE.diff
	calendars/de_AT.ISO_8859-15/calendar.feiertag.REL=9.3-RELEASE.diff
	calendars/de_DE.ISO8859-1
	calendars/de_DE.ISO8859-1/README
	calendars/de_DE.ISO8859-1/bavaria
	calendars/de_DE.ISO8859-1/bavaria/README
	calendars/de_DE.ISO8859-1/bavaria/calendar.holidays
	calendars/de_DE.ISO8859-1/bavaria/calendar.other
	calendars/de_DE.ISO8859-1/bavaria/muenchen
	calendars/de_DE.ISO8859-1/bavaria/munich
	calendars/de_DE.ISO8859-1/bavaria/munich/README
	calendars/de_DE.ISO8859-1/bavaria/munich/calendar.andere
	calendars/de_DE.ISO8859-1/bavaria/munich/calendar.other
	calendars/de_DE.ISO8859-1/bavaria/munich/calendar.technical
	calendars/de_DE.ISO8859-1/bavaria/munich/calendar.technik
	calendars/de_DE.ISO8859-1/bayern
	calendars/de_DE.ISO8859-1/calendar.feiertag
	calendars/de_DE.ISO8859-1/nrw
	calendars/de_DE.ISO8859-1/nrw/README
	calendars/de_DE.ISO8859-1/nrw/aachen
	calendars/de_DE.ISO8859-1/nrw/aachen/calendar.technical
	calendars/de_DE.ISO8859-1/nrw/calendar.feiertage
	calendars/de_DE.ISO8859-1/nrw/calendar.holidays
	calendars/en_UK.ISO8859-1
	calendars/en_UK.ISO8859-1/README
	calendars/en_UK.ISO8859-1/calendar.all
	calendars/en_UK.ISO8859-1/calendar.events
	calendars/en_UK.ISO8859-1/calendar.finance
	calendars/en_UK.ISO8859-1/calendar.history
	calendars/en_UK.ISO8859-1/calendar.holidays
	calendars/en_UK.ISO8859-1/calendar.other
	calendars/en_UK.ISO8859-1/calendar.religious
	calendars/fr_FR.ISO8859-1
	calendars/fr_FR.ISO8859-1/calendar.jferies.REL=ALL.diff

Cheers,
-- 
Julian Stacey, Consultant Sys. Eng. BSD Linux Unix, http://berklix.com/jhs/cv/
	
Crash Brexit profits financial speculators in cabinet damaging Britain.
UK stole 3.7 million votes from Brits abroad 700 K in EU http://stolenvotes.uk


More information about the freebsd-arch mailing list