1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- #!/bin/bash
- # Copyright (c) 2007-2011 Nokia Corporation and/or its subsidiary(-ies).
- # All rights reserved.
- # This component and the accompanying materials are made available
- # under the terms of the License "Eclipse Public License v1.0"
- # which accompanies this distribution, and is available
- # at the URL "http://www.eclipse.org/legal/epl-v10.html".
- #
- # Initial Contributors:
- # Nokia Corporation - initial contribution.
- #
- # Contributors:
- #
- # Description:
- # raptor filter script
- # add mingw to the PATH if we are running Cygwin on Windows
- #
- if [ "$OSTYPE" == "cygwin" ]; then
- SBS_HOME=$(/bin/cygpath.exe -a -m "$0/../..")
- else
- SBS_HOME=$(cd "${0%/*}/.." && echo $PWD)
- fi
- source $SBS_HOME/bin/sbs_env
- export SBS_HOME
- # call sbs_filter.py with the arguments
- FILTER_START="$SBS_HOME/bin/sbs_filter.py"
- if [ -e "$FILTER_START" ]; then
- # run the source version
- ${__PYTHON__} "$FILTER_START" "$@"
- elif [ -e "$FILTER_START"c ]; then
- # run the compiled version
- ${__PYTHON__} "$FILTER_START"c "$@"
- else
- echo "Cannot start sbs_filter - $FILTER_START not found." 1>&2
- echo "Check your SBS_HOME environment variable." 1>&2
- fi
|