3 Jul 2009 21:40
[Bug 386779] Re: make fails on OS X at "date" call
FZiegler <fz.2003 <at> klacto.net>
2009-07-03 19:40:06 GMT
2009-07-03 19:40:06 GMT
I ran into the same problem -- the error is
Creating dvc-version.texinfo
date: illegal time format
usage: date [-jnu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ...
[-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format]
make[1]: *** [dvc-version.texinfo] Error 1
make: *** [info] Error 2
mini:_.build fz$
...because BSD `date' has different flags. Workaround:
=== modified file 'texinfo/Makefile.in'
--- texinfo/Makefile.in 2008-08-23 06:33:26 +0000
+++ texinfo/Makefile.in 2009-07-03 17:50:43 +0000
<at> <at> -79,7 +79,7 <at> <at>
dvc-version.texinfo: $(top_srcdir)/configure
<at> echo Creating $ <at>
<at> ( echo <at> set VERSION $(PACKAGE_VERSION) ; \
- date '+ <at> set UPDATED %F' -r $< ) > $ <at>
+ stat -t'%F' -f' <at> set UPDATED %Sm' $< ) > $ <at>
.PHONY: all dvi pdf html info \
install uninstall \
Unfortunately this is not a cross-platform solution either, and I dont' think there is an easy POSIX
one-liner we could put here. (See [1], and compare the BSD and Linux man pages for `date', `stat', `ls' at
[2].) If you insist on a standard date format, I believe the `automatic' solution is to include `mdate-sh'
in the distribution, as described in (info "(automake) Texinfo")) -- much as we already have `install-sh'.
(Continue reading)
RSS Feed