webengine/osswebengine/WebKitTools/CygwinDownloader/make-zip.sh
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Wed, 14 Apr 2010 17:06:56 +0300
branchRCL_3
changeset 37 ac77f89b1d9e
parent 0 dd21522fd290
permissions -rw-r--r--
Revision: 201013 Kit: 201015

#!/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
}