[Pkg-fonts-devel] watch file syntax

Bobby de Vos bobby_devos at sil.org
Thu Jul 20 20:40:16 UTC 2017


Greetings,

I am trying to write a watch file for the upstream tarball at
https://github.com/silnrsi/font-awami/releases but cannot seem to make
it work. I have tried two different versions of the watch file. Both
start with the following

# Compulsory line, this is a version 4 file
version=4

# PGP signature mangle, so foo.tar.gz has foo.tar.gz.sig
#opts="pgpsigurlmangle=s%$%.sig%"

# PGP signature mangle, so foo.tar.xz has foo.tar.xz.asc
opts="pgpsigurlmangle=s%$%.asc%"

The first file then has

# HTTP site (basic)
#http://example.com/downloads.html \
#  files/fonts-sil-awami-nastaliq-([\d\.]+)\.tar\.gz debian uupdate

# HTTP site (basic)
https://github.com/silnrsi/font-awami/releases \
  download/v([\d\.]+)/AwamiNastaliq-([\d\.]+).tar.xz debian uupdate

and uscan says

uscan warn: In debian/watch no matching files for watch line
  https://github.com/silnrsi/font-awami/tags
(?:.*?/)?v?(\d[\d.]*)\.tar\.xz debian uupdate

The second file then has

# GitHub hosted projects
#opts="filenamemangle="s%(?:.*?)?v?(\d[\d.]*)\.tar\.gz%<project>-$1.tar.gz%"
\
#   https://github.com/<user>/fonts-sil-awami-nastaliq/tags \
#   (?:.*?/)?v?(\d[\d.]*)\.tar\.gz debian uupdate

# GitHub hosted projects
opts="filenamemangle="s%(?:.*?)?v?(\d[\d.]*)\.tar\.xz%AwamiNastaliq-$1.tar.xz%"
\
  https://github.com/silnrsi/font-awami/tags \
  (?:.*?/)?v?(\d[\d.]*)\.tar\.xz debian uupdate

and uscan says

uscan warn: In debian/watch no matching files for watch line
  https://github.com/silnrsi/font-awami/tags
(?:.*?/)?v?(\d[\d.]*)\.tar\.xz debian uupdate

I provided the comment out example so you can easily see what dh_make
produces. What am I doing incorrectly?

Thanks, Bobby

-- 
Bobby de Vos
/bobby_devos at sil.org/



More information about the Pkg-fonts-devel mailing list