This is an automated email from the git hooks/post-receive script.

osamu pushed a commit to branch multitar
in repository devscripts.

commit 8ebab1c2bfa97830ca670d6830444297910282c7
Author: Osamu Aoki <[email protected]>
Date:   Tue Nov 10 23:43:16 2015 +0900

    uscan: @PACKAGE@ etc.
    
    Fix #517637 auto-generalise the search regex
    Fix #539780 Provide a $package variable to uscan environment
---
 scripts/uscan.pl | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/scripts/uscan.pl b/scripts/uscan.pl
index 85c8d6b..b17c1f1 100755
--- a/scripts/uscan.pl
+++ b/scripts/uscan.pl
@@ -3869,6 +3869,15 @@ sub process_watchfile ($$$$)
        # Handle shell \\ -> \
        s/\\\\/\\/g if $watch_version==1;
 
+       # Handle @PACKAGE@ @ANY_VERSION@ @ARCHIVE_EXT@ substitutions
+       my $any_version = '[-_](\d[\-+\.:\~\da-zA-Z]*)';
+       my $archive_ext = '(?i)\.(?:tar\.xz|tar\.bz2|tar\.gz|zip)';
+       my $signature_ext = $archive_ext . '\.(?:asc|pgp|gpg|sig)';
+       s/\@PACKAGE\@/$package/g;
+       s/\@ANY_VERSION\@/$any_version/g;
+       s/\@ARCHIVE_EXT\@/$archive_ext/g;
+       s/\@SIGNATURE_EXT\@/$signature_ext/g;
+
        $status +=
            process_watchline($_, $watch_version, $dir, $package, $version,
                              $watchfile);

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/collab-maint/devscripts.git

_______________________________________________
devscripts-devel mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/devscripts-devel

Reply via email to