--
Ticket URL: <www.midnight-commander.org/ticket/2692>
Midnight Commander <http://www.midnight-commander.org>
Midnight Development Center
Comment (by angel_il):
>I'll try to find the proper cross-OS command to print the timestamp of a
file.
perl
--
Ticket URL: <www.midnight-commander.org/ticket/2692#comment:1>
Comment (by egmont):
Yep I was just gonna figure out if perl was already used or ask if it's
acceptable. Seems I'll go for that. BSD's stat and date are just
ridiculously stupid.
--
Ticket URL: <www.midnight-commander.org/ticket/2692#comment:2>
Comment (by angel_il):
{{{
if `perl -v > /dev/null 2>&1` ; then
"echo perl found!"
fi
}}}
--
Ticket URL: <www.midnight-commander.org/ticket/2692#comment:3>
* owner: => slavazanko
* status: new => accepted
--
Ticket URL: <http://www.midnight-commander.org/ticket/2692#comment:4>
* branch_state: no branch => on review
Comment:
Created branch [changeset:6b8d17831de22ba2734d3a9ab4b88327885984a7
2692_manpage_broken_date]
Review, please.
--
Ticket URL: <http://www.midnight-commander.org/ticket/2692#comment:5>
* keywords: => stable-candidate
--
Ticket URL: <http://www.midnight-commander.org/ticket/2692#comment:6>
* milestone: Future Releases => 4.8.3
--
Ticket URL: <http://www.midnight-commander.org/ticket/2692#comment:7>
Comment (by egmont):
I'm afraid this change would break compilation on Mac, since that has that
braindamaged 'date' and 'stat' commands. I don't have my Mac with me right
now to verify this.
The solution could be to replace the date and stat commands with a perl
script, as mentioned above; or to move the substitution of date (and maybe
version number too) from the normal configure&&make phase to the autogen
phase (which would still break on Mac for git version, but would keep
tarballs working).
I'd be happy to write the perl program in a couple of days, just please
hold on your current change until then ;)
--
Ticket URL: <http://www.midnight-commander.org/ticket/2692#comment:8>
Comment (by egmont):
Oh wait... apparently you did get rid of date and stat??? You rock!
Anyway, I'll double check on Mac and get back to you with the results.
--
Ticket URL: <http://www.midnight-commander.org/ticket/2692#comment:9>
Comment (by slavazanko):
> Anyway, I'll double check on Mac and get back to you with the results.
Okay, we awaiting.
--
Ticket URL: <http://www.midnight-commander.org/ticket/2692#comment:10>
Comment (by egmont):
Here's what I'm trying to do, since I cannot run ./autogen on my Mac:
on Linux:
git clone ...
git checkout 2692_manpage_broken_date
create tarball as written here https://www.midnight-
commander.org/wiki/ReleaseGuidelines , skipping the .po files part.
copy the tarball over to Mac
on Mac:
./configure && make && make install
Here's where it goes wrong:
The tarball does not contain the manpages - I guess this was broken by
this branch; the tarball created from the main git branch is okay.
--
Ticket URL: <http://www.midnight-commander.org/ticket/2692#comment:11>
Comment (by slavazanko):
Wow, no man-files in tarball, really. This my fail. Egmont, thanks for
this good testing. I'll fix it as soon.
--
Ticket URL: <http://www.midnight-commander.org/ticket/2692#comment:12>
Comment (by slavazanko):
Fixed in latest commit of branch. review, please.
--
Ticket URL: <http://www.midnight-commander.org/ticket/2692#comment:13>
Comment (by egmont):
"awk: calling undefined function strftime"
I'm sorry that Mac sucks so much :( Seems perl is the only tool we can
trust.
Two more notes:
date-of-man-include.am sets LC_TIME, but this can be overridden by LC_ALL
if the user has that set, leading to incorrect language and even to
incorrect charset. I think date-of-man-include.am should override LC_ALL
instead.
For Hungarian (hu), the date format should be like "2012. március", that
is,
DATE_FORMAT=%Y. %B
Could you please fix this as well?
Thanks!
--
Ticket URL: <http://www.midnight-commander.org/ticket/2692#comment:14>
Comment (by slavazanko):
Egmont, try to check the latest changes in branch on MacOS. Now used just
perl for setting the dates on man-pages.
> For Hungarian (hu), the date format should be like "2012. március", that
is,
> DATE_FORMAT=%Y. %B
> Could you please fix this as well?
Done.
--
Ticket URL: <http://www.midnight-commander.org/ticket/2692#comment:15>
Comment (by egmont):
Date substitution now works great :)
"make install" puts the i18n manpages into ${prefix}/share/man/hu_HU/man1
and similar, instead of ${prefix}/share/man/hu/man1 - I guess this might
cause problems with various man readers.
Also, could you please consider overriding LC_ALL instead of LC_TIME, as
per the previous comment?
thanks!
--
Ticket URL: <http://www.midnight-commander.org/ticket/2692#comment:16>
Comment (by slavazanko):
> "make install" puts the i18n manpages into
${prefix}/share/man/hu_HU/man1 and similar, instead of
${prefix}/share/man/hu/man1 - I guess this might cause problems with
various man readers.
Oh, my fail. I errorneusly changed LANG variable. Fixed
> Also, could you please consider overriding LC_ALL instead of LC_TIME, as
per the previous comment?
Done. Thanks for testing!
--
Ticket URL: <http://www.midnight-commander.org/ticket/2692#comment:17>
Comment (by egmont):
Perfect! Thanks sooo much! :)
--
Ticket URL: <http://www.midnight-commander.org/ticket/2692#comment:18>
* votes: => andrew_b
--
Ticket URL: <http://www.midnight-commander.org/ticket/2692#comment:19>
* votes: andrew_b => andrew_b angel_il
* branch_state: on review => approved
--
Ticket URL: <http://www.midnight-commander.org/ticket/2692#comment:20>
* status: accepted => testing
* votes: andrew_b angel_il => committed-master
* resolution: => fixed
* branch_state: approved => merged
Comment:
merged to master:
{{{
git log --pretty=oneline ea82ca4..cd1f777
}}}
--
Ticket URL: <http://www.midnight-commander.org/ticket/2692#comment:21>
* keywords: stable-candidate =>
* status: testing => closed
* votes: committed-master => committed-master committed-stable
Comment:
merged to stable:
{{{
git log --pretty=oneline b7eb59e..344130d
}}}
--
Ticket URL: <http://www.midnight-commander.org/ticket/2692#comment:22>