On Fri, Apr 20, 2012 at 08:51:29PM -0700, Eric Smith wrote: > Corey Richardson wrote: > >Getting source tarballs from github is a nightmare. See > >http://lists.fedoraproject.org/pipermail/devel/2011-February/148676.html > > > >The debian tool doesn't help very much because one still needs revision > >garbage in the specfile. Is there any more recent ways to mitigate this? > >Perhaps we could "lobby" github to change their ways, at least partially? > > I don't know if this will be of any use to you, but for tcplay there > isn't a tagged release, so I use this script to create an suitable > tarball from a github commit with a known hash, by doing a clone > then archiving it locally. Certainly this doesn't solve the problem > of not having a source URL. > > #!/bin/sh > # usage: tcplay-get-snapshot.sh <hash> > git clone git://github.com/bwalex/tc-play > ( cd tc-play && \ > git archive --format=tar --prefix=tcplay-$1/ $1 \ > ) | xz - >tcplay-$1.tar.xz I took what you provided here an expanded it a little: http://mcpierce.blogspot.com/2012/04/creating-source-tarball-from-github.html -- Darryl L. Pierce, Sr. Software Engineer @ Red Hat, Inc. Delivering value year after year. Red Hat ranks #1 in value among software vendors. http://www.redhat.com/promo/vendor/
Attachment:
pgpAE4mFvV3fc.pgp
Description: PGP signature
-- devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/devel