← Back to team overview

geda-developers team mailing list archive

Re: geda-gaf on FreeBSD and probably other architectures

 

Hi, Dan.

On Thu, Aug 13, 2015 at 07:03:43AM -0400, Dan McMahill wrote:
> On 7/14/2015 10:11 AM, Peter TB Brett wrote:
> >On 2015-07-14 15:09, Vladimir Zhbanov wrote:
> >>OK, the line in question was
> >>  d=`LANG=C date -d $(DATE_VERSION) "+%B %-d, %Y"` ; \
> >>
> >>I've written two scripts, one is combination of sed and awk:
> >>
> >>  echo DATE_VERSION | sed 's/\(....\)\(..\)\(..\)/\1 \2 \3 00 00 00/' |
> >>                      LANG=C awk '{print (strftime ("%B %-d, %Y",
> >>mktime ($0)))}'
> >>
> 
> I'm a little late on this but do all awk's (like solaris awk) support
> strftime?  Or will this push the "must use gmake" problem over to a "must
> use gawk" one?

We'd already discussed this on the geda-user list, and yes, you're
right, so I've fixed the issue using guile, since one of the users had
reported that the awk strftime function is not portable.

Cheers,
  Vladimir 


References