Re: [PATCH] Use a better filename when creating a snapshot
Mikko Rasa <[email protected]> Mon, 13 Feb 2017 13:51:51 +0200
| Newsgroups | gmane.comp.video.xine.devel |
|---|---|
| Message-ID | <[email protected]> |
On 13.02.2017 12:29, Petri Hintukainen wrote: > su, 2017-02-12 kello 23:17 +0100, Xavier Bachelot kirjoitti: >> Hi, >> >> As it seems neither Petri nor Torsten, the 2 active developers, have >> enough privileges to make a full release with a proper tarball >> uploaded >> to the website, I'm leaning toward using snapshots for Fedora. >> However, >> the generated tarball name is not unique enough for my use, so I came >> up >> with the attached patch, which will generate a tarball named >> xine-lib-"version"-"date_of_changeset"hg"changeset_number".tar.xz >> rather than >> xine-lib-"version"hg.tar.gz >> >> Please review. > > I would also check for local changes / commits and add "dirty" etc. to > the version suffix. > > Maybe something like > > HG_DIRTY=`hg out 2>/dev/null | grep -q changeset || hg sum | grep -q > 'commit:.*modified' && echo "+dirty"` An additional thought about this. Such dirty tarballs are not really appropriate for general distribution. Maybe it would be too harsh to outright refuse to generate a tarball (it may have some uses during development), and marking it as dirty is definitely appropriate, but a public release should always be made from a clean source tree. -- Mikko ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot