[GRASS5] html to man conversion

Justin Hickey jhickey at hpcc.nectec.or.th
Mon Jan 15 07:24:36 EST 2001


Hi Markus

Markus Neteler wrote:
> On Tue, Dec 05, 2000 at 06:35:43PM +0000, Michel Wurtz wrote:
> > Markus Neteler wrote:
> > >
> > > Hi again,
> > >
> > > unfortunately another bug found on SUN in
> > > html/Gmakefile
> > >
> > > Copying html pages
> > > /bin/sh: test: unknown operator -ot
> > >
> > > I don't know the meaning of -ot, but it's not portable
> > > (Huidae, Michel?).
> >
> > Uh ? excerpt from SunOS 5.7 man page of test
> >
> >      file1 -ot file2
> >                True, if file1 exists and is older than file2.
> >
> > BUT... [ or test are in /usr/ucb or /usr/bin for sun =>
> >
> > $ if /usr/bin/test Lespinard.zip -ot Duclaux.zip ; then echo ok ; fi
> > ok
> > $ if /usr/ucb/test Lespinard.zip -ot Duclaux.zip ; then echo ok ; fi
> > test: unknown operator -ot
> > $
> >
> > Conclusion :
> > if test file1 -ot file2 ; then echo ok ; fi      # doesn't work
> > if /bin/test file1 -ot file2 ; then echo ok ; fi # works !
> >
> > Silly mixing of old SunOS and new Solaris versions... !
> I have checked that. And I have renamed
> /usr/ucb/test
> to
> /usr/ucb/test_old
> 
> .. but above problem is still there.
> 
> The "-ot" test occurs from
> html/Gmakefile:
> 
> if [ ! -f $$f -o $$f -ot $$h ]
> 
> So "test" is not called directly. How can we fix this?

It has to be changed since the -ot option is not supported on SGI
machines. Perhaps we could use the getModTime function I added to
src/general/init but then it would need to be compiled before the html
conversion.

-- 
Sincerely,

Jazzman (a.k.a. Justin Hickey)  e-mail: jhickey at hpcc.nectec.or.th
High Performance Computing Center
National Electronics and Computer Technology Center (NECTEC)
Bangkok, Thailand
==================================================================
People who think they know everything are very irritating to those
of us who do.  ---Anonymous

Jazz and Trek Rule!!!
==================================================================

---------------------------------------- 
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo at geog.uni-hannover.de with
subject 'unsubscribe grass5'



More information about the grass-dev mailing list