Provided by: umegaya_0.13_all bug

NAME

       umegaya-guess-url - Converts a VCS URL in a URL to "debian/upstream"

SYNOPSIS

       umegaya-guess-url VCS_URL

DESCRIPTION

       VCS  (version  control  system)  URLs  indicate  where to clone or check out anonymously source packages.
       umegaya-guess-url attempts to guess the package name and convert the VCS URL in either a  Subversion  URL
       that can be used by svn cat, or in a HTTP URL that can be used to retrieve debian/upstream via Gitweb.

       It recoginses VCS URLs from the following Debian Pure Blends.

       svn://svn.debian.org/debian-med/trunk/packages/+?/([a-z0-9+-.]+)/trunk
       git://git.debian.org/debian-med/([a-z0-9+-.]+).git

       svn://svn.debian.org/s?v?n?/?debichem/unstable/([a-z0-9+-.]+)/
       svn://svn.debian.org/s?v?n?/?debichem/experimental/([a-z0-9+-.]+)/
       svn://svn.debian.org/s?v?n?/?debichem/wnpp/([a-z0-9+-.]+)/
       git://git.debian.org/g?i?t?/?debichem/packages/([a-z0-9+-.]+).git

       svn://svn.debian.org/s?v?n?/?debian-science/packages/R/([a-z0-9+-.]+)/
       svn://svn.debian.org/s?v?n?/?debian-science/packages/([a-z0-9+-.]+)/
       git://git.debian.org/g?i?t?/?debian-science/packages/([a-z0-9+-.]+).git

RETURNS

       A package name, followed by a tabulation, followed by an URL.

EXAMPLE

       $    ./scripts/umegaya-guess-url   $(debcheckout   -d   emboss   |   grep   url   |   cut   -f2)   emboss
       http://git.debian.org/?p=debian-med/emboss.git;a=blob_plain;f=debian/upstream;hb=HEAD

SEE ALSO

       umegaya-adm(1), umegaya-refresh-blend (1), http://wiki.debian.org/UpstreamMetadata

SOURCE

       http://git.debian.org/?p=users/plessy/umegaya.git

LIMITATIONS

       Only source packages stored in Subversion and Git are supported for the moment.

AUTHORS

       Charles Plessy.

Umegaya User Manual                               April 8, 2012                             UMEGAYA-GUESS-URL(1)