Commit graph

6 commits

Author SHA1 Message Date
Doug Torrance b310c99a4d wmitime: Do not include or compile unused wmgeneral files. 2014-12-20 09:55:06 +00:00
Doug Torrance 5cbe821b8c wmitime: Update contact information. 2014-12-20 09:55:06 +00:00
Doug Torrance d5bf493727 wmitime: Remove references to config file in source; nonexistent feature. 2014-12-20 09:55:06 +00:00
Doug Torrance fe61e81905 wmitime: Remove C++ style comments. 2014-12-20 09:55:06 +00:00
Doug Torrance cc801880a5 wmitime: Improve locale support.
Previously, wmitime only had support for English, French, and (in Debian
only) Hungarian.  In addition, the choice was made at compile time.

This patch adds run-time support for any language using the Latin alphabet.
The locale is determined by the user's environment or may be specified on
the command line with the "-l" option.  Note that users whose environment
specifies a non-Latin locale may wish to use, e.g., "-l C", as otherwise
no date will appear.

Note that, for simplicity, the month and day are now displayed as "01 JAN"
as opposed to "JAN 01".  (Previously, the former format was used for English
and the latter for French.)
2014-12-20 09:55:06 +00:00
Doug Torrance 0fbe3d839a wmitime: Update Makefile.
In particular,
- Remove reference to deprecated X11R6 directory.
- Replace FLAGS variable with CFLAGS, CPPFLAGS, and LDFLAGS.
- Honor CC, PREFIX, and DESTDIR variables.
- Use INSTALL instead of cp for installation.
- Remove redundant -lXext flag.
- Move contents of wmitime directory to top directory to ease the building
  process.

Inspired in part by the Debian patches [1,2].

[1] http://sources.debian.net/src/wmitime/0.3%2B20120605-1/debian/patches/20-makefile-CC.patch/
[2] http://sources.debian.net/src/wmitime/0.3%2B20120605-1/debian/patches/make-install.patch/
2014-12-20 09:55:06 +00:00
Renamed from wmitime/wmitime/wmitime.c (Browse further)