Discussion:
gdate command
David Arnstein
2007-08-07 18:39:41 UTC
Permalink
I would like to use the gdate command in cygwin. I did a package search
on cygwin.com. I found that gdate.h is in the glib2-devel package. But
I could find no gdate.c, gdate.exe, or gdate.anything for that matter.

Since someone has already provided glib2-devel, is there an easy way to
compile a valid gdate.exe for cygwin?
Eric Blake
2007-08-07 19:15:23 UTC
Permalink
Post by David Arnstein
Since someone has already provided glib2-devel, is there an easy way to
compile a valid gdate.exe for cygwin?
Do you mean GNU date, which is a part of GNU coreutils? The name 'gdate'
is often used so that the GNU utilities can be installed alongside vendor
tools, allowing the choice between GNU and non-GNU. But since cygwin does
not provide non-GNU vendor tools, you can just use 'date' instead of
'gdate' - I have no reason to complicate my packaging of coreutils just to
add a 'g' prefix. And since coreutils is a Base package, you already have
'date' installed.

- --
Don't work too hard, make some time for fun as well!

Eric Blake ***@byu.net
volunteer cygwin coreutils maintainer
Eric Blake
2007-08-07 19:53:49 UTC
Permalink
Post by Eric Blake
Post by David Arnstein
Since someone has already provided glib2-devel, is there an easy way to
compile a valid gdate.exe for cygwin?
I have no reason to complicate my packaging of coreutils just to
add a 'g' prefix.
Following up to myself, if you still want gdate, then you could simply:

ln -s /bin/date /usr/local/bin/gdate

The same goes for other GNU utilities that are often shipped with 'g' prefixes
on systems with non-GNU counterparts, such as gmake, gtar, ...
--
Eric Blake
Christopher Faylor
2007-08-07 20:00:13 UTC
Permalink
Post by Eric Blake
Post by Eric Blake
Post by David Arnstein
Since someone has already provided glib2-devel, is there an easy way to
compile a valid gdate.exe for cygwin?
I have no reason to complicate my packaging of coreutils just to
add a 'g' prefix.
ln -s /bin/date /usr/local/bin/gdate
The same goes for other GNU utilities that are often shipped with 'g'
prefixes on systems with non-GNU counterparts, such as gmake, gtar, ...
I think it's actually a different program, at least that's the hint
google gave me.

cgf

Continue reading on narkive:
Loading...