On Wed, Dec 21, 2016 at 09:33:29PM +0000, Ghislain Vaillant wrote: > Dear all, > > I am trying to write a watch file suitable for fetching tarballs from a > *link* published on a GitHub release page [1]. It seems this link > points to a different location on Amazon S3 [2]. > > [1] https://github.com/arrayfire/arrayfire/releases > [2] http://arrayfire.s3.amazonaws.com/index.html#!/arrayfire_source%2F >
You want the downloadurlmangle option. This could be more robust and/or future-proofed, but the attached file should get you started. Bill
version=3 opts=downloadurlmangle=s/github\.com\/arrayfire\/arrayfire\/archive\/v?(\d[\d\.]*)\.tar\.gz/arrayfire.com\/arrayfire_source\/arrayfire-full-$1\.tar\.bz2/ \ http://github.com/arrayfire/arrayfire/releases (?:.*/)?v?(\d[\d\.]*)\.tar\.gz