Skip to content

Commit 0313670

Browse files
author
Mikael Vejdemo Johansson
committed
hodie 1.4-8 with debian patches, original import.
0 parents  commit 0313670

23 files changed

+1777
-0
lines changed

BUGS

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
No major bugs that I know of right know.
2+
3+
Some code might be prettier -- but nothing (afaik) will seriously
4+
crash hodie.
5+
6+
Please mail any bug-reports or suggestions to
7+

CHANGELOG

+78
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
0.4
2+
Was capable of converting the date and printing it verbosely. No
3+
command line options accepted.
4+
5+
0.7
6+
Had a man-page, certain command line options and a brief
7+
error/usage message.
8+
0.8
9+
Implemented the ab urbe condita mode of dates and a version
10+
option.
11+
1.0pre
12+
Tried building a RPM-package of it.
13+
1.0
14+
Grammar checked. Due to grammar details, internal representation was
15+
slightly changed (had to cover both ablative and accusative in the
16+
verbose output).
17+
1.1
18+
Verbosified ab urbe condita display as well. Bug fixes
19+
arriving on first day online fixed (platform-specific coding
20+
and bad month calculations).
21+
1.2
22+
Modularised code structure... Now it is organised after one
23+
function, one source file, and the makefile and headers have
24+
been hacked to support this.
25+
26+
Man page partially rewritten. Tnx to Ted Rolle for his
27+
extensive tips on improvements.
28+
29+
__isleap portability issues resolved. I simply replaced all
30+
calls to it with calls to my own leap-year calculator.
31+
32+
The --version call is more extensive and even contains a few
33+
words about licensing and author :-)
34+
35+
The republican switch is added, as well as a BUGS and a
36+
CREDITS file to the tarball.
37+
38+
The month handling is slightly redone, removing all those
39+
nasty bugs I found as soon as I was able to play around with
40+
the dates on my own :-)
41+
1.3
42+
Modularized the help-texts and error messages. At least a
43+
bit. Those of you interested in translating the english bits
44+
of hodie into other languages will find most of what you need
45+
in strings.h.en and the manual in hodie.1.en. I will include a
46+
diff from the last release of these two files to allow for
47+
simple incremental translation. Kudos to Jose Ivan Juanes for
48+
doing a translation into spanish for me!
49+
50+
Fixed the core-dumping bugs. I think. Mail me if it still
51+
screws up.
52+
1.4pre
53+
New feature: extremely verbose display. Declines the number of
54+
days till the next main day as well instead of just displaying
55+
it as a roman numeral.
56+
57+
The sourcefile split of version 1.3 has transceded into split
58+
source branches instead. It's easier to maintain that way...
59+
60+
sscanf changed to atoi in several places in the
61+
parse_date.c-file -- improved security (atoi actually checks
62+
data and does other neat stuff :-)
63+
Support for any separator in date parsing added (i.e. it's
64+
done by a 'sscanf(str,"%d%c%d%c%d"...)' instead of a
65+
'sscanf(str,"%d-%d-%d"...)'.
66+
67+
Display of numerals off as default - -x turns it on.
68+
69+
1.4
70+
'extremely verbose display' now _implemented_. The function
71+
taking care of the declensions will be basis for another,
72+
parallel program to hodie -- that simply will put out any
73+
number in any of the wanted forms, declined as asked for.
74+
75+
Support for this kind of program lies in the to_roman.c file,
76+
but the actual program is not yet implemented. (Due to large
77+
parts of my audience in this question, a Windoze port of hodie
78+
is coming up :-)

CREDITS

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
Maintainer, Programmer and Copyright holder
2+
3+
Mikael Johansson <[email protected]>
4+
5+
Translation into spanish
6+
7+
Ivan Juanez
8+
9+
Bug reports and feature requests from
10+
11+
Ted Rolle,
12+
Thanh
13+
Christian Ionescu-Idbohrn
14+
Philip Zeyliger
15+
Harri Haataja
16+
Andr� Sim�es
17+
Anders Sandberg
18+
Peter Pentchev

DISTRIBUTORS

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
Note to re-distributors of hodie
2+
3+
The copyright notice and the License terms are to be included in every
4+
distribution or redistribution of the program and/or its source codes.
5+
6+
The name of the file including these, may be as the distributor wishes
7+
_AS_ _LONG_ _AS_ it is still clear where to find it.
8+
9+
I.e. permutations such as renaming it to 'copyright' instead of 'LICENSE'
10+
or similar renamings is perfectly ok, and may be done without consulting
11+
the author.
12+
13+
Permutations such as renaming it to 'BAD_VBA_VIRUS' '00_index' or other
14+
utterly misleading names, is not wished for; should be done only after
15+
consulting the author _AND_ receiving his blessing for the renaming --
16+
which is unlikely anyway.
17+
18+
Shadow zones may always be resolved by emailing the author.
19+
20+
...:::ooo***OOO***ooo:::...
21+
22+
This code is licensed under the MIT license. I chose the MIT because I've
23+
read it and understood it. I still haven't managed to plough throw the
24+
tonnes of legalese that constitute the GPL, and I won't release under GPL
25+
until I've read and understood it. Explaining the GPL to me won't help.
26+
27+
I have nothing principally against relicensing it under another license if
28+
you need it -- mail me and ask. I still have the requirement though that I
29+
must read it, understand it and approve of it before the license is
30+
changed.
31+
32+
You may of course -- as stated in the license -- redistribute it under a
33+
new sub-license. This license may broaden, but not restrict the MIT
34+
license. The MIT license must still be included in the new distribution --
35+
granting anyone the right to relicense it once again.
36+
37+
38+
And, please contact me if you plan to distribute it. I'm such a fan of
39+
hearing what became of my toy project :-)

LICENSE

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Copyright (c) 2000 Mikael Johansson
2+
3+
Permission is hereby granted, free of charge, to any person obtaining
4+
a copy of this software and associated documentation files (the
5+
"Software"), to deal in the Software without restriction, including
6+
without limitation the rights to use, copy, modify, merge, publish,
7+
distribute, sublicense and/or sell copies of the Software, and to
8+
permit persons to whom the Software is furnished to do so, subject to
9+
the following conditions:
10+
11+
The above copyright notice and this permission notice shall be
12+
included in all copies or substantial portions of the Software.
13+
14+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17+
NONINFRINGEMENT. IN NOT EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
18+
BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
19+
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Makefile

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# Change these to customize for your setup
2+
CC=gcc
3+
CFLAGS=-g -Wall
4+
5+
# Install paths and command on recommendation from Peter Pentchev
6+
INSTALL=/usr/bin/install -c
7+
8+
# Some prefer /usr/local over /usr as installation root
9+
#INSTALL_PATH=/usr/local
10+
INSTALL_PATH=/usr
11+
12+
BINDIR=$(INSTALL_PATH)/bin
13+
MAN1DIR=$(INSTALL_PATH)/man/man1
14+
15+
# BSD might prefer this
16+
# DOCPATH=$(INSTALL_PATH)/share/doc/hodie
17+
18+
# Linux might prefer this:
19+
DOCDIR=$(INSTALL_PATH)/doc/packages/hodie
20+
21+
#############################
22+
# End of user configuration #
23+
#############################
24+
25+
EXEC=hodie
26+
OBJECTS=hodie.o version.o help.o isleap.o to_roman.o to_roman_numerals.o\
27+
parse_date.o date_to_roman.o
28+
HEADERS=hodie.h includes.h version.h to_roman.h
29+
DOCS=README LICENSE BUGS CREDITS CHANGELOG TODO DISTRIBUTORS
30+
31+
all: $(EXEC)
32+
33+
.PHONY: clean install uninstall all
34+
35+
$(EXEC): $(OBJECTS)
36+
$(CC) $(CFLAGS) -o $(EXEC) $(OBJECTS)
37+
38+
.c.o:
39+
$(CC) -c $(CFLAGS) -o $@ $<
40+
41+
$(OBJECTS): $(HEADERS)
42+
43+
install: $(EXEC)
44+
$(INSTALL) -s -m 755 $(EXEC) $(BINDIR)
45+
install -m 644 hodie.1 $(MAN1DIR)
46+
install -d $(DOCDIR)
47+
install -m 644 $(DOCS) $(DOCDIR)
48+
49+
uninstall:
50+
-rm -f $(BINDIR)/$(EXEC)
51+
-rm -f $(MAN1DIR)/hodie.1
52+
cd $(DOCDIR) && rm -f $(DOCS)
53+
-rm -r $(DOCDIR)
54+
55+
clean:
56+
-rm $(EXEC) *.o

README

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
Welcome to hodie and the fascinating world of latin speakers. This
2+
program exists because of my getting a few wild ideas while browsing
3+
the challenges of dotcomma <http://www.dotcomma.org>.
4+
5+
What does it do?
6+
It has the same functionality as the date (1) program, only... It
7+
has it in grammatically correct latin :-)
8+
9+
How do I install it?
10+
As I still haven't had the possibility to check out exactly how
11+
autoconf/automake works, you'll still have to take a look at the
12+
Makefile.
13+
14+
It's designed to work well with my own, local linux system and
15+
the way _I_ run it. This means, that above all else, you might
16+
wish to take a *good* look at the placements of files (/usr vs
17+
/usr/local) and other such issues. All this is done at the top of
18+
the Makefile.
19+
20+
Once you feel at ease (or if you're foolish enough to trust me
21+
with my judgement), you do
22+
23+
make # (make all and make hodie also work)
24+
make install
25+
26+
and you should be ready to go.
27+
28+
Dependencies???
29+
I do assume, that you have a halfways decent UNIX-system,
30+
preferrably with make, a c-compiler and enough standard libraries
31+
to support printfs and time-functions... Apart from that, it
32+
should be totally ANSI-C, and I cannot see why it shouldn't be
33+
fully portable. It's nothing *really* fancy anyway :-)
34+
35+
Licenses?
36+
I release this software under the MIT license. (No, not the GPL
37+
license. Mainly because I do not quite understand the GPL license
38+
myself as I do with the MIT and the BSD types.)
39+
40+
The license conditions are reproduced in the file LICENSE, which
41+
should be included in every distribution of this software.
42+
43+
All the spanish stuff is (c) Ivan Juanes. If you can't find any
44+
spanish stuff, then this does not apply (beginning with my moving
45+
in at sourceforge, I split spanish and english into two different
46+
branches.
47+
48+
Who did this?
49+
Responsible for this hacklet is
50+
Mikael Johansson <[email protected]>
51+
52+
Please do e-mail... I'm only happy for feedback :-)

TODO

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Here's what I consider to be the most important tasks with hodie for
2+
now...
3+
4+
* Grammar fixing!!! Tell me if you know latin and know any of my forms
5+
to be wrong! I'm no authority on the language (yet), and may very
6+
well make mistakes all over the place.
7+
8+
* Win32 porting and X/Window and Win32 interface
9+
building... (humanists are seldom _that_ fond of command line
10+
interfaces :-)

0 commit comments

Comments
 (0)