the extension needs to be \.
test with defined() at ./set_version line 118.

Signed-off-by: Jan Blunck <jblunck@infradead.org>
Fix processing of --file parameter

We need to check for an empty @files array before we start filtering. We
shall not reset the @files array when filtering the list.

Signed-off-by: Jan Blunck <jblunck@infradead.org>
Add support for setting the version in debian.changelog

For Debian builds the primary location of the package version number is the
changelog file. In some cases where set_version is used in combination with
tar_scm's versionformat parameter it might be required to amend the
Debian changelog as well. Later during the build debtransform will assemble
the correct format of the sources.

Signed-off-by: Jan Blunck <jblunck@infradead.org>
Sort local file list based on modification time (newest first)

When we are searching for the version number we want to visit the least
recently modified file first. Therefore we shall sort the readdir result
based on the modification timestamp.

Signed-off-by: Jan Blunck <jblunck@infradead.org>