Bill Allombert on Wed, 26 Nov 2003 14:41:48 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Description system TODO list


On Thu, Nov 13, 2003 at 12:03:57AM +0100, Bill Allombert wrote:
> Hello pari-dev,
> 
> Unfortunately a new problem came up:
> 
> the funclist mechanism to detect change in the function database has
> the nasty side effect of triggering a rebuild of the pari.desc file
> on fresh tree extracted from tarball (made with make distrib not
> by ViewCVS). This is a problem if perl is not available.
> 
> The best fix would be to write the funclist in a portable format so
> that the rebuild of this file lead to the same result on any hosts.
> 
> Unfortunately the current
> ls -l $src/functions/*/* > $src/funclist.tmp
> Does not achieve that (ls -l format is not portable).

I have a proposal for a solution:
Use the 'sum' utility like in

sum -r src/functions/*/* | cut -d' ' -f1,8i

Probably we need to test whether the '-r' flag is required/supported
in configure.

This has the added advantage of resisting to timestamp breakage.

Eventually we could ship a small C program and compile it to do
this task in a more portable way.

Cheers,
Bill.