[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: upstream-vcs



On Mon, 23 Dec 2013 20:06:23 +0100, gregor herrmann wrote:

> > Here's the almost-working script I currently use in my mc (Midnight 
> > Commander) menu file:
> > 
> >     set -e
> >     set -x
> >     set -o pipefail
> >     pkg="$(dpkg-parsechangelog | egrep '^Source:' | cut -f 2 -d ' ')"
> >     uscan="$(uscan --report-status || true)"
> >     uversion="$(echo $uscan | perl -nE '/remote site is ([^\s,]+)/ and say $1')"
> >     dversion="$(echo $uscan | perl -nE '/local version is ([^\s,]+)/ and say $1')"
> >     utag="$(git tag | grep -x "$uversion" || git tag | grep -x "v$uversion" || git tag | grep -- "-$uversion\$")"
> >     debian/rules get-orig-source DEB_UPSTREAM_TARBALL_VERSION="$uversion" DEB_UPSTREAM_TARBALL_MD5=
> >     git-import-orig --pristine-tar --sign-tags --filter=.gitignore ${utag:+--upstream-vcs-tag="$utag"} "../tarballs/${pkg}_${dversio
> 
> Nice, I guess we'd need to come up with a fully-working version at
> some point :)
> 
> (`dpt import' comes to mind as a name and place for it.)

I've now pushed a first draft of dpt-import-orig to the
pkg-perl-tools git repo, based on this idea.

It reads the upstream git url from d/copyright or (creates and reads
from) d/upstream, adds and fetches from the remote, and imports in the
cdbs style from above or just with git-import-orig --pristine-tar
--uscan ...
  
As always: reviews and improvements needed before this is ready for
prime-time :)

Jonas, ss this ok for you:

#v+
=head1 COPYRIGHT & LICENSE

=over

=item Copyright 2013 Jonas Smedegaard L<dr@jones.dk>

=item Copyright 2013 gregor herrmann L<gregoa@debian.org>

=back

This program is free software, licensed under the same term as perl.
#v-


Cheers,
gregor


-- 
 .''`.  Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06
 : :' : Debian GNU/Linux user, admin, and developer  -  http://www.debian.org/
 `. `'  Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe
   `-   NP: Ludwig Hirsch: Tante Marie

Attachment: signature.asc
Description: Digital signature


Reply to: