diff -r 000000000000 -r dd21522fd290 webengine/osswebengine/WebKitTools/CygwinDownloader/make-zip.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/webengine/osswebengine/WebKitTools/CygwinDownloader/make-zip.sh Mon Mar 30 12:54:55 2009 +0300 @@ -0,0 +1,30 @@ +#!/bin/sh + +PYTHONEXE=$(cygpath -u "${SYSTEMDRIVE}\\Python25\\python.exe") +ZIPNAME="cygwin-downloader.zip" + +if [[ ! -f "${PYTHONEXE}" ]]; then + echo "Couldn't find python.exe at ${PYTHONEXE}" 1>&2 + exit 1 +fi + +"${PYTHONEXE}" setup.py py2exe || { + echo "Failed executing setup.py" 1>&2 + exit 1 +} + +rm -f "${ZIPNAME}" + +cd dist + +zip -r ../"${ZIPNAME}" * || { + echo "Failed to create cygwin-downloader" 1>&2 + exit 1 +} + +cd .. + +rm -rf build dist || { + echo "Failed to cleanup cygwin-downloader and build directories" 1>&2 + exit 1 +}