On Sun, Jul 23, 2017 at 09:42:47PM +0300, Mpampis Kostas wrote:
Package: nginx
Severity: wishlist
Tags: patch

This patch introduces the debian/modules/uscan script and some helper
files which can be used to automate the modules watch & upgrade process.

The main script is executed as '$ debian/modules/uscan' without any arguments 
from
the root of the debianized nginx source tree where you see the debian/ 
directory.

It runs uscan for each nginx module listed in the newly deb822 formatted
debian/modules/README.Modules-version using the watchfiles in 
debian/modules/watch.

If a new version is available, it will ask you if you want to upgrade.
If you agree, it will download the tarball, place it in the parent directory
and upgrade the module's source.

After the upgrade, it will remove the files listed in the
Files-Excluded module field.

Example output:

$ debian/modules/uscan

Thanks a lot Mpampis, great patch, it's a time saver!

Since the module config is now a proper deb822 file, we can rename it to
debian/modules/control. As a final step, this might be a good time to
cannonicalize the module paths to exactly match the package naming. I
believe this should happen first to keep the diffs as simple as
possible.

Regarding the script itself, I believe we can make it more generic
(ngxmod?) and add uscan as a subcommand, we can the add more commands
like list, add, etc.

Reply via email to