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

Re: how to take advantage of uscan for git upstream source with only commits (read no tags) ?



On Tue, 2016-03-01 at 17:04 +0100, Jerome BENOIT wrote:

> Of course, the version is somewhere in the source:
> the issue would be solved if the automates could play with the involved file.

pagemangle should be able to take care of that.

> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=802176
> https://github.com/IDRSolutions/maven-OpenViewerFX-src

I couldn't resist trying out the new uscan features to come up with
something that works. It grabs the version out of the pom.xml file but
always downloads the master.tar.gz file:

version=4
opts="downloadurlmangle=s%.*%https://github.com/IDRSolutions/maven-OpenViewerFX-src/archive/master.tar.gz%,pagemangle=s%<version>([^<]*)</version>%<version><a href="$1">$1</a></version>%" \
https://raw.githubusercontent.com/IDRSolutions/maven-OpenViewerFX-src/master/OpenViewerFX/pom.xml \
(\d[\.\d]*)

It is extremely hacky, please talk to your upstream about tags/releases.

-- 
bye,
pabs

https://wiki.debian.org/PaulWise


Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: