| # Create a list of all the files in the source tree, excluding various things we |
| echo "Creating current directory contents list." |
| grep -v '^\./.gitignore' | \ |
| grep -v '^\./notes.txt' | \ |
| grep -v '^\./lit.egg-info' | \ |
| grep -v '^\./lit/ExampleTests' | \ |
| grep -v '__pycache__' | \ |
| grep -v '.pyc$' | grep -v '~$' | \ |
| sort > /tmp/lit_source_files.txt |
| # Create the source distribution. |
| echo "Creating source distribution." |
| python setup.py sdist > /tmp/lit_sdist_log.txt |
| # Creating list of files in source distribution. |
| echo "Creating source distribution file list." |
| tar zft dist/lit*.tar.gz | \ |
| sed -e 's#lit-[0-9.dev]*/#./#' | \ |
| grep -v '^\./PKG-INFO' | \ |
| grep -v '^\./setup.cfg' | \ |
| grep -v '^\./lit.egg-info' | \ |
| sort > /tmp/lit_sdist_files.txt |
| if (diff /tmp/lit_source_files.txt /tmp/lit_sdist_files.txt); then |
| echo "error: there were differences in the source lists!" |