changeset 6791:87496864d4c6

scripts: verify in release script that tar content matches repo content
author Mads Kiilerich <mads@kiilerich.com>
date Sat, 12 Aug 2017 17:29:06 +0200
parents 8cea7986ed79
children 24fa228656f1
files scripts/make-release stable
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/make-release	Sat Aug 12 17:28:40 2017 +0200
+++ b/scripts/make-release	Sat Aug 12 17:29:06 2017 +0200
@@ -31,9 +31,7 @@
 python2 setup.py sdist
 
 echo "Verifying dist file content"
-tar tf dist/Kallithea-*.tar.gz | sed "s|^$namerel/||" | LANG=C sort > scripts/manifest
-hg diff
-hg up -c . # fail if manifest changed
+diff -u <(hg mani | grep -v '^\.hg' | LANG=C sort) <(tar tf dist/Kallithea-*.tar.gz | sed "s|^$namerel/||" | grep . | grep -v '^kallithea/i18n/.*/LC_MESSAGES/kallithea.mo$\|^Kallithea.egg-info/\|^PKG-INFO$\|/$' | LANG=C sort)
 
 echo "Now, make sure"
 echo "* the copyright and contributor lists have been updated"