3 PYTHONEXE=$(cygpath -u "${SYSTEMDRIVE}\\Python25\\python.exe")
4 ZIPNAME="cygwin-downloader.zip"
6 if [[ ! -f "${PYTHONEXE}" ]]; then
7 echo "Couldn't find python.exe at ${PYTHONEXE}" 1>&2
11 "${PYTHONEXE}" setup.py py2exe || {
12 echo "Failed executing setup.py" 1>&2
20 zip -r ../"${ZIPNAME}" * || {
21 echo "Failed to create cygwin-downloader" 1>&2
27 rm -rf build dist || {
28 echo "Failed to cleanup cygwin-downloader and build directories" 1>&2