Changeset - 87496864d4c6
[Not reviewed]
default
1 1 0
Mads Kiilerich - 8 years ago 2017-08-12 17:29:06
mads@kiilerich.com
scripts: verify in release script that tar content matches repo content
2 files changed with 1 insertions and 3 deletions:
0 comments (0 inline, 0 general)
scripts/make-release
Show inline comments
 
@@ -22,27 +22,25 @@ hg log -r "'$version'&." | grep .
 

	
 
echo "Cleaning before making release build"
 
hg up -c .
 
hg revert -a -r null
 
hg up -C "'$version'&."
 
hg purge --all
 

	
 
echo "Building dist file"
 
python2 setup.py compile_catalog
 
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"
 
echo "* all tests are passing"
 
echo "* release note is ready"
 
echo "* announcement is ready"
 
echo "* source has been pushed to https://kallithea-scm.org/repos/kallithea"
 
echo
 

	
 
echo -n "Enter \"pypi\" to upload Kallithea $version to pypi: "
 
read answer
 
[ "$answer" = "pypi" ]
stable
Show inline comments
 
deleted file
0 comments (0 inline, 0 general)