Hi Mathieu, Mathieu Malaterre, on 2020-08-26 15:24:22 +0200: > Could someone help me write (update actually) the d/watch file for > pixelmed-codec. The steps are: > > * http://www.dclunie.com/pixelmed/software/codec/index.html > ** 20200328_current > *** http://www.dclunie.com/pixelmed/software/codec/20200328_current/pixelmedjavacodec_sourcerelease.20200328.tar.bz2 > > How would/should one do this ? I took some time to explore uscan(1) manual during a break, and was hoping to follow the recommendation: >> When writing the watch file, you should rely on the >> latest upstream source announcement web page. You >> should not try to second guess the upstream archive >> structure if possible. However there does not seem to be a page with a direct link to the latest update on the website for one. Second, there is no autoindex in place, and this seems to break uscan common routines; the https://www.dclunie.com/pixelmed/software/codec/ page throws a 404 error. Here is what I could come up when playing with uscan to update the watcher: version=4 opts="\ downloadurlmangle=s%\./([b\d]+)_current/index.html%$1_current/pixelmedjavacodec_sourcerelease.$1\.tar\.bz2%,\ filenamemangle=s/\.\/([b\d]+)_current\/index\.html/pixelmedjavacodec_sourcerelease.$1\.tar\.bz2/\ " \ https://www.dclunie.com/pixelmed/software/codec/index.html \ \./([b\d]+)_current/index\.html It looks rather fragile, but it seems to work for now. If someone has a much simpler approach this would be most welcome, I guess... I hope this helps, -- Étienne Mollier <etienne.mollier@mailoo.org> Old rsa/3072: 5ab1 4edf 63bb ccff 8b54 2fa9 59da 56fe fff3 882d New rsa/4096: 8f91 b227 c7d6 f2b1 948c 8236 793c f67e 8f0d 11da Sent from /dev/pts/3, please excuse my verbosity.
Attachment:
signature.asc
Description: PGP signature