In message <[EMAIL PROTECTED]> on Tue, 10 May 2005 01:37:09 +0200, Rhialto 
<[EMAIL PROTECTED]> said:

rhialto> ifelse( TWM_TYPE, ctwm,                                                
  
rhialto>   [define(CTWM_VERSION, substr(translit(                     
rhialto>           substr(TWM_VERSION, 0, index(TWM_VERSION-, [-])), [.])000, 
0, 3) )dnl
rhialto> ],[define(CTWM_VERSION, 0)dnl         
rhialto> ])dnl
rhialto> 
rhialto> and this breaks now, since it expects the "-" to be there...

Replace that with the following:

ifelse( TWM_TYPE, ctwm,
  [define(CTWM_VERSION, substr(translit(
          substr(TWM_VERSION, 0, regexp(TWM_VERSION, [[-A-Za-z]])), [.])000,
          0, 3) )dnl
],[define(CTWM_VERSION, 0)dnl
])dnl

Cheers,
Richard

-----
Please consider sponsoring my work on free software.
See http://www.free.lp.se/sponsoring.html for details.

-- 
Richard Levitte                         [EMAIL PROTECTED]
                                        http://richard.levitte.org/

"When I became a man I put away childish things, including
 the fear of childishness and the desire to be very grown up."
                                                -- C.S. Lewis

Reply via email to