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

Re: Fixing watch file (Was: Bits from DEHS)



Andreas Tille wrote:
> 
> I'm aware that the watch file of adun.app is wrong because it reports
> version 0.74 as newer than 0.8.2 (upstream should have choosen 0.7.4
> instead
> of 0.74).  Any hint how to fix this watch file line
> 
>    http://download.gna.org/adun/Adun-(.*)\.tar\.gz
> 
> to do the right thing?

If it is the only version which has and will have that version naming:

version=3
opts=uversionmangle=s/^0\.74$/0.7.4/ \
http://download.gna.org/adun/Adun-(.*)\.tar\.gz

or you could also try something like this:

version=3
opts=uversionmangle=s/^([0-9]+\.)([0-9])([0-9])$/$1$2.$3/ \
http://download.gna.org/adun/Adun-(.*)\.tar\.gz

> 
> Kind regards
> 
>            Andreas.
> 

Cheers,
Raphael Geissert



Reply to: