[PATCH] Use a better filename when creating a snapshot
Xavier Bachelot <[email protected]> Sun, 12 Feb 2017 23:17:39 +0100
| Newsgroups | gmane.comp.video.xine.devel |
|---|---|
| Message-ID | <[email protected]> |
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. Regards, Xavier ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ xine-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xine-devel
xine-lib-Use_a_better_filename_when_creating_a_snapshot.patch
(text/x-patch, 995 B)
# HG changeset patch # User Xavier Bachelot <[email protected]> # Date 1486934830 -3600 # Sun Feb 12 22:27:10 2017 +0100 # Node ID 14180247b4ad9f9c256bc99e87656a5855234cb0 # Parent d1b6b7dcc22f64fd4a553ec7caac0470fa3edd90 Use a better filename when creating a snapshot diff -r d1b6b7dcc22f -r 14180247b4ad version.sh --- a/version.sh Sat Feb 11 18:22:06 2017 +0200 +++ b/version.sh Sun Feb 12 22:27:10 2017 +0100 @@ -39,7 +39,12 @@ XINE_LT_REVISION=0 XINE_LT_AGE=6 -test -f "`dirname $0`/.cvsversion" && XINE_VERSION_SUFFIX="hg" +if [ -f "`dirname $0`/.cvsversion" ]; then + HG_REV="`hg summary | sed -e '1s/^parent: \([0-9]*\):.*$/\1/;1q'`" + HG_DATE_UNIX="`hg export -r ${HG_REV} | sed -n '3s/^# Date \([0-9]*\) .*$/\1/p;3q'`" + HG_DATE="`date -u +%Y%m%d --date=@${HG_DATE_UNIX}`" + XINE_VERSION_SUFFIX="-${HG_DATE}hg${HG_REV}" +fi XINE_VERSION_SPEC="${XINE_VERSION_MAJOR}.${XINE_VERSION_MINOR}.${XINE_VERSION_SUB}${XINE_VERSION_PATCH}${XINE_VERSION_SUFFIX}" ####