Changeset - 8f51a05b9856
[Not reviewed]
stable
0 1 0
Thomas De Schampheleire - 6 years ago 2020-01-18 21:17:31
thomas.de_schampheleire@nokia.com
scripts/make-release: fix check of dist file content after commit 7c7d6b5c07c7

The kallithea repo recently gained a .mo file for English, but all .mo files
are filtered out when comparing the list of files in the tarball.

Fix by filtering out the new .mo file when getting the repo manifest.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
scripts/make-release
Show inline comments
 
@@ -37,25 +37,25 @@ sed -e 's/[^ ]*[ ]*\([^ ]*\).*/\1/g' MAN
 
echo "Build dist"
 
python2 setup.py compile_catalog
 
python2 setup.py sdist
 

	
 
echo "Verify VERSION from kallithea/__init__.py"
 
namerel=$(cd dist && echo Kallithea-*.tar.gz)
 
namerel=${namerel%.tar.gz}
 
version=${namerel#Kallithea-}
 
ls -l $(pwd)/dist/$namerel.tar.gz
 
echo "Releasing Kallithea $version in directory $namerel"
 

	
 
echo "Verify dist file content"
 
diff -u <((hg mani | grep -v '^\.hg') | LANG=C sort) <(tar tf dist/Kallithea-$version.tar.gz | sed "s|^$namerel/||" | grep . | grep -v '^kallithea/i18n/.*/LC_MESSAGES/kallithea.mo$\|^Kallithea.egg-info/\|^PKG-INFO$\|/$' | LANG=C sort)
 
diff -u <((hg mani | grep -v '^\.hg\|^kallithea/i18n/en/LC_MESSAGES/kallithea.mo$') | LANG=C sort) <(tar tf dist/Kallithea-$version.tar.gz | sed "s|^$namerel/||" | grep . | grep -v '^kallithea/i18n/.*/LC_MESSAGES/kallithea.mo$\|^Kallithea.egg-info/\|^PKG-INFO$\|/$' | LANG=C sort)
 

	
 
echo "Verify docs build"
 
python2 setup.py build_sphinx # the results are not actually used, but we want to make sure it builds
 

	
 
echo "Shortlog for inclusion in the release announcement"
 
scripts/shortlog.py "only('.', branch('stable') & tagged() & public() & not '.')"
 

	
 
cat - << EOT
 

	
 
Now, make sure
 
* all tests are passing
 
* release note is ready
0 comments (0 inline, 0 general)