# HG changeset patch # User timothy.murphy@nokia.com # Date 1260460315 0 # Node ID 8cdd7cd64f20980b3c5497b317769c82084ac0ae # Parent 572b3909c72f122e6eacd32a62acc6e93353b6de# Parent 6ebd8f14df4599a3f92e72c0aa72f116258767b8 Catchup merge diff -r 6ebd8f14df45 -r 8cdd7cd64f20 sbsv2/raptor/bin/sbs_filter --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sbsv2/raptor/bin/sbs_filter Thu Dec 10 15:51:55 2009 +0000 @@ -0,0 +1,91 @@ +#!/bin/bash +# Copyright (c) 2007-2009 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 script +# add mingw to the PATH if we are running Cygwin on Windows +# + +# If SBS_HOME is not set in the environment then work it out +# from the path to this batch file +if [ -z "$SBS_HOME" ] ; then + temp=$0 + SBS_HOME=$(cd ${temp%/*} && echo $PWD) + export SBS_HOME=${SBS_HOME%/bin} +fi + +# Ensure that the host type is set for Raptor: +eval $($SBS_HOME/bin/gethost.sh -e) + +if [ -z "$HOSTPLATFORM" ]; then + echo "Error: HOSTPLATFORM could not be determined." 1>&2 + exit 1 +fi + +if [ ! -d "$SBS_HOME/$HOSTPLATFORM_DIR" ]; then +cat 1>&2 <&2 + echo "Check your SBS_HOME environment variable." 1>&2 +fi diff -r 6ebd8f14df45 -r 8cdd7cd64f20 sbsv2/raptor/bin/sbs_filter.bat --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sbsv2/raptor/bin/sbs_filter.bat Thu Dec 10 15:51:55 2009 +0000 @@ -0,0 +1,47 @@ +@rem +@rem Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). +@rem All rights reserved. +@rem This component and the accompanying materials are made available +@rem under the terms of the License "Eclipse Public License v1.0" +@rem which accompanies this distribution, and is available +@rem at the URL "http://www.eclipse.org/legal/epl-v10.html". +@rem +@rem Initial Contributors: +@rem Nokia Corporation - initial contribution. +@rem +@rem Contributors: +@rem +@rem Description: +@rem + +@REM Automatically find SBS_HOME if it is not set +@IF NOT "%SBS_HOME%"=="" goto foundhome +@SET RAPTORBINDIR=%~dp0 +@SET WD=%cd% +@cd %RAPTORBINDIR%\.. +@SET SBS_HOME=%cd% +@cd %WD% +:foundhome + +@REM Use the cygwin set by the environment if possible +@SET __CYGWIN__=%SBS_CYGWIN% +@IF "%__CYGWIN__%"=="" SET __CYGWIN__=%SBS_HOME%\win32\cygwin + +@REM add to the search path +@SET PATH=%__CYGWIN__%\bin;%PATH% + +@REM Make sure that /tmp is not set incorrectly for sbs +@umount -u /tmp >NUL 2>NUL +@mount -u %TEMP% /tmp >NUL 2>NUL +@umount -u / >NUL 2>NUL +@mount -u %__CYGWIN__% / >NUL 2>NUL + +@REM Tell CYGWIN not to map unix security attributes to windows to +@REM prevent raptor from potentially creating read-only files: +@set CYGWIN=nontsec nosmbntsec + +@REM Run with all the arguments. +@bash %SBS_HOME%\bin\sbs_filter %* + +@ENDLOCAL +@cmd /c exit /b %ERRORLEVEL% diff -r 6ebd8f14df45 -r 8cdd7cd64f20 sbsv2/raptor/python/plugins/filter_what.py --- a/sbsv2/raptor/python/plugins/filter_what.py Wed Dec 09 20:09:35 2009 +0000 +++ b/sbsv2/raptor/python/plugins/filter_what.py Thu Dec 10 15:51:55 2009 +0000 @@ -42,6 +42,12 @@ self.outfile.write(filename+"\n") self.prints += 1 + + def start_bldinf(self, bldinf): + pass + + def end_bldinf(self): + pass def open(self, build_parameters): @@ -79,6 +85,10 @@ "Regex for zip exports" self.zip_export_regex = re.compile("^.*") + + "Regex for determining bld.inf name" + self.whatlog_regex = re.compile("^