savReaderWriter / make_packages.sh

#!/bin/bash

savReaderWriter=~/Desktop/savReaderWriter
cd $savReaderWriter
version=$(cat VERSION)

echo "***********************************************************************"
echo "Start running setup.py with bdist_deb option"
echo "***********************************************************************"

# temporarily stash the irrelevant I/O files in /tmp
folders="aix64 hpux_it lin64 sol64  zlinux64 macos win32 win64"
for folder in $folders; do mv $savReaderWriter/savReaderWriter/spssio/$folder /tmp; done
python setup.py --command-packages=stdeb.command bdist_deb
src=$savReaderWriter/deb_dist/python-savreaderwriter_$version-1_all.deb
dst=$savReaderWriter/dist/savReaderWriter-$version.lin32.deb
mv $src $dst
for folder in $folders; do mv /tmp/$folder $savReaderWriter/savReaderWriter/spssio; done
rm -r $savReaderWriter/deb_dist

echo "***********************************************************************"
echo "Start running setup.py with bdist_wininst option (correct???)"
echo "***********************************************************************"
folders="aix64 hpux_it lin32 lin64 sol64  zlinux64 macos win64"
for folder in $folders; do mv $savReaderWriter/savReaderWriter/spssio/$folder /tmp; done
python setup.py bdist_wininst
for folder in $folders; do mv /tmp/$folder $savReaderWriter/savReaderWriter/spssio; done

echo "***********************************************************************"
echo "Start running setup.py with sdist gztar,zip"
echo "***********************************************************************"

python setup.py sdist --formats=gztar,zip

echo "***********************************************************************"
echo "Start running setup.py with build_sphinx (documentation)"
echo "***********************************************************************"

python setup.py check build_sphinx --source-dir=savReaderWriter/documentation -v
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.