Commit Graph

44 Commits

Author SHA1 Message Date
bapt
5686bc9fd4 Rework calendar(1) parser
Support includes surrounded by '"' or '<' '>'
Print warnings about bad syntax
Correctly navigate through include directories to find calendar files
Correctly support multiple includes

Tested by:	gjb
MFC after:	1 week
2015-03-04 20:04:23 +00:00
bapt
8d6c7a49a6 Convert to usr.bin/ to LIBADD
Reduce overlinking
2014-11-25 14:29:10 +00:00
emaste
75dbd6b012 Remove extraneous "mkdir -p"
The directory hierarchy is created by an mtree file (BSD.usr.dist,
in the case of calendar(1)).  An explicit "mkdir -p" in a program's
Makefile is redundant, and can mask a missing mtree entry.
2014-06-02 18:30:57 +00:00
imp
2118f42afd Use src.opts.mk in preference to bsd.own.mk except where we need stuff
from the latter.
2014-05-06 04:22:01 +00:00
jmmv
41a8d8c295 Migrate most of tools/regression/usr.bin/ to the new tests layout.
I'm starting with the easy cases.  The leftovers need to be looked at a
bit more closely.

Note that this change _does_ modify the code of the old tests.  This is
required in order to allow the code to locate the data files in the
source directory instead of the current directory, because Kyua
automatically changes the latter to a temporary directory.

Also note that at least one test is known to be broken here.  Actually,
the test is not really broken: it's marked as a TODO but unfortunately
Kyua's TAP parser currently does not understand that.  Will have to be
fixed separately.
2014-03-16 08:04:06 +00:00
db
05645a7435 - calendar uses cpp internally, this diff removes this usage and
substitutes a limited subset cpp processor internally.

PR:		src/178463
Approved by:	re (gjb)
2013-09-19 20:17:50 +00:00
glebius
5cec20bb2b Provide UTF-8 version of russian calendars. 2013-08-16 07:02:17 +00:00
osa
ffbbf1cb2c Add pt_BR.ISO8859-1 and pt_BR.UTF-8 directories to install.
It was forgotten in r219937 commit.

Approved by:	edwin
MFC after:	1 week
2012-02-23 17:47:48 +00:00
ed
3eeda85437 Remove extraneous WARNS=7.
WARNS above 6 has no use. Also, all of usr.bin is also built with
WARNS=6 by default.

Discussed with:	edwin
2011-10-08 07:20:12 +00:00
uqs
4a9698dc55 Pet make checkdpadd. 2010-11-25 19:22:24 +00:00
edwin
14fe0275f0 Bump WARNS to 7 2010-03-29 07:08:47 +00:00
edwin
914d5a5c2d Long awaited update to the calendar system:
- Repeating events which span multiple years (because of -A, -B or
  just the three days before the end of the year).

- Support for lunar events (full moon, new moon) and solar events
  (equinox and solstice, chinese new year). Because of this, the
  options -U (UTC offset) and -l (longitude) are available to
  compensate if reality doesn't match the calculated values.

MFC after:	1 month
2010-03-29 06:49:20 +00:00
ed
9b380e30d4 Build usr.bin/ with WARNS=6 by default.
Also add some missing $FreeBSD$ to keep svn happy.
2010-01-02 10:27:05 +00:00
ru
67f1b851d4 Add some significant Ukrainian dates.
PR:		88076
Submitted by:	Andriy Gapon
2005-10-28 21:25:28 +00:00
dwmalone
486b54a301 Add Hungarian calendar entries.
PR:		42725
Submitted by:	Janos Mohacsi <janos.mohacsi@bsd.hu>
2004-08-16 09:31:09 +00:00
josef
284de6b08c Add austrian calendar as install target.
Approved by:	le
Pointed out by:	stefanf
2004-06-04 11:30:52 +00:00
ache
dbd5811216 Remove deprecated locale names 2003-06-10 01:54:10 +00:00
obrien
0f60a19b2e This builds fine with WARNS.
Tested on:	sparc64, athlon[32]
2002-12-30 09:41:07 +00:00
ru
a8adf98c82 Drop support for COPY, -c has been the default mode of install(1)
for a long time now.

Approved by:	bde
2002-07-29 09:40:17 +00:00
ru
cd7c90d38f s/${INSTALL} -c/${INSTALL} ${COPY}/ 2002-07-18 12:07:49 +00:00
grog
e930b35ecd beforeinstall target:
- Remove superfluous ;
- create destination directories if they don't exist.
2002-06-13 21:21:59 +00:00
dwmalone
741f22f7bb Make a link from fr_FR.ISO8859-1 to fr_FR.ISO8859-15.
Submitted by:	wollman
2002-05-13 21:30:23 +00:00
dwmalone
c6f306a6a4 Don't use ISO_8859 when I should use ISO8859. 2002-04-29 20:57:36 +00:00
dwmalone
4af9569b92 Add a French calendar.
PR:		32265
Submitted by:	Thierry Thomas <thierry@pompo.net>
MFC after:	1 week
2002-04-28 23:22:13 +00:00
markm
31d81e4fbc Remove NO_WERRORs and WARNS=n's. To be revisited after GCC3. 2002-02-08 23:07:37 +00:00
markm
ae2558974f Remove leaf node WARNS?=2 (that mainly I added). This should
help the GCC3 transition and CURRENT in general.
2002-02-08 22:31:43 +00:00
markm
18cc007439 WARNS=2 fixup (mostly. Some are Hard To Fix(tm), so NO_WERROR is set)
Use __FBSDID().
Sort some headers.
2001-12-02 22:44:14 +00:00
dd
4e2319fe86 Nuke spaces in front of tabs. 2001-11-04 23:20:52 +00:00
ache
096a6eced8 ISO_ -> ISO 2001-06-11 02:59:46 +00:00
ache
081b21dba9 Add new and Latin15 names 2001-06-10 18:03:53 +00:00
phantom
ba10e5ecf9 Rename calendars/ru_SU.KOI8-R to calendars/ru_RU.KOI8-R to reflect
locale name change (ru_SU.KOI8-R -> ru_RU.KOI8-R)

Not objected to by:	ache
2000-05-04 11:35:27 +00:00
phantom
3978f1f2e1 Add missing $FreeBSD$ tags 2000-05-04 11:28:55 +00:00
ache
0d422cfa72 Add russian data handling 1996-05-10 21:39:38 +00:00
ache
e187821820 Localize it
Handle Orthodox Eastern
-Wall cleanup
1996-05-10 16:30:22 +00:00
jdp
12bc0ec742 Removed the definition of the make variable SHAREDIR. It was clashing
with the definition in bsd.own.mk, causing "make world" to fall over.
1996-04-02 22:26:18 +00:00
wosch
54cbaa1475 Submitted by: bruce
replace shell loop with make(1) builtin loop
1996-02-18 19:29:45 +00:00
wosch
579d5f3c48 more verbose output during install foreign calendar files 1996-02-18 01:42:44 +00:00
wosch
763baf4d95 Submitted by: Slaven Rezic (Tomic) <eserte@cs.tu-berlin.de>
croatian calendar
1996-02-09 14:35:02 +00:00
ache
cb030b238b Don't make directory here, it is mtree task 1996-02-05 17:35:17 +00:00
wosch
f351e4d35e - handle events that move around from year to year, i.e.,
``the last Monday in April'
- handle easter

new options
	-f calendarfile
	-A days
	-B days

Calendar HOME directory ~/.calendar
don't sent mail if ~/.calendar/nomail exist
1996-02-02 06:02:41 +00:00
peter
868b4a08b4 de_DE.ISO8859-1 -> de_DE.ISO_8859-1 after repository operation on
Andrey's request.
1996-01-30 18:24:32 +00:00
wosch
84a0cf5f95 install new calendars/de_DE.ISO8859-1/calendar.* files 1996-01-29 00:31:29 +00:00
bde
f5284ed86d Change install' to ${INSTALL}' so that default install flags can be
specified in the top level Makefiles.
1995-07-25 00:37:58 +00:00
rgrimes
f9ab90d9d6 BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00