And once more, this time with attachments.

Stephan Bergmann wrote:
Hi all,

Each makefile.mk needs to set PRJNAME to the name of the (CVS) module it is contained in. That is for example used by the MODULES_WITH_WARNINGS lists, listing those modules (i.e., PRJNAMEs) which are still to be compiled without warnings=errors. There are occasionally cases where a misspelled PRJNAME causes this mechanism to fail (e.g., if PRJNAME in module X is erroneously set to the name of module Y that is still included in MODULES_WITH_WARNINGS, and thus warnings erroneously do not lead to errors when compiling X).

Attached are two quick and dirty scripts that worked for me (within Hamburg build environment on a Linux box) to find all the places where PRJNAME is probably set wrongly (see below). Feel free to fix those you feel responsible for.

-Stephan

 -> setsolar -src680 -ver m190 unxlngi6
 -> badPRJNAME.pl

./XmlSearch/src/com/sun/xmlsearch/makefile.mk:PRJNAME = xmlsearch
./autodoc/source/parser/tokens/makefile.mk:PRJNAME=garden
./autodoc/source/parser_i/tokens/makefile.mk:PRJNAME=garden
./avmedia/source/xine/makefile.mk:PRJNAME=avmediaxine
./bean/com/sun/star/beans/makefile.mk:PRJNAME = beans
./bean/com/sun/star/comp/beans/makefile.mk:PRJNAME = beans
./bean/native/unix/makefile.mk:PRJNAME=beans
./bean/native/win32/makefile.mk:PRJNAME=odk
./beanshell/makefile.mk:PRJNAME=ooo_beanshell
./berkeleydb/makefile.mk:PRJNAME=so_berkeleydb
./boost/spirit/makefile.mk:PRJNAME=ooo_boost
./boost/makefile.mk:PRJNAME=ooo_boost
./chart2/workbench/anyperformance/makefile.mk:PRJNAME=anyperformance
./connectivity/com/sun/star/sdbcx/comp/hsqldb/makefile.mk:PRJNAME = connectivity
./connectivity/qa/connectivity/tools/makefile.mk:PRJNAME = $(TARGET)
./connectivity/qa/drivers/dbase/makefile.mk:PRJNAME = $(TARGET)
./cppu/test/makefile.mk:PRJNAME=testcppu
./curl/makefile.mk:PRJNAME=so_curl
./dbaccess/qa/complex/dbaccess/makefile.mk:PRJNAME = $(TARGET)
./embeddedobj/qa/embedding/makefile.mk:PRJNAME = $(TARGET)
./embeddedobj/test/Container1/makefile.mk:PRJNAME = $(TARGET)
./expat/makefile.mk:PRJNAME=so_expat
./extensions/source/packer/workben/makefile.mk:PRJNAME=packer
./filter/qa/complex/filter/detection/typeDetection/makefile.mk:PRJNAME = $(TARGET)
./filter/qa/complex/filter/misc/makefile.mk:PRJNAME = $(TARGET)
./filter/source/config/tools/split/makefile.mk:PRJNAME = $(TARGET)
./filter/source/xsltvalidate/makefile.mk:PRJNAME = filter
./fpicker/source/win32/filepicker/workbench/makefile.mk:PRJNAME=sysui
./fpicker/source/win32/folderpicker/workbench/makefile.mk:PRJNAME= sysui ./framework/qa/complex/XUserInputInterception/makefile.mk:PRJNAME = $(TARGET) ./framework/qa/complex/contextMenuInterceptor/makefile.mk:PRJNAME = $(TARGET)
./framework/qa/complex/dispatches/helper/makefile.mk:PRJNAME = $(TARGET)
./framework/qa/complex/dispatches/makefile.mk:PRJNAME = $(TARGET)
./framework/qa/complex/framework/autosave/makefile.mk:PRJNAME = $(TARGET)
./framework/qa/complex/framework/recovery/makefile.mk:PRJNAME = $(TARGET)
./framework/qa/complex/imageManager/interfaces/makefile.mk:PRJNAME = $(TARGET)
./framework/qa/complex/imageManager/makefile.mk:PRJNAME = $(TARGET)
./framework/qa/complex/loadAllDocuments/helper/makefile.mk:PRJNAME = $(TARGET)
./framework/qa/complex/loadAllDocuments/makefile.mk:PRJNAME = $(TARGET)
./freetype/makefile.mk:PRJNAME=so_freetype
./helpcontent2/source/auxiliary/makefile.mk:PRJNAME = help2
./helperapi/OOoEnabler/com/sun/star/migration/makefile.mk:PRJNAME = Evaluation ./helperapi/qa/complex/exportbasicmacros/makefile.mk:PRJNAME = migrationtoolkit
./hsqldb/makefile.mk:PRJNAME=so_hsqldb
./i18npool/source/indexentry/makefile.mk:PRJNAME=i18n
./icu/makefile.mk:PRJNAME=so_icu
./io/test/makefile.mk:PRJNAME=extensions
./javaunohelper/com/sun/star/comp/helper/makefile.mk:PRJNAME = juhelper
./javaunohelper/com/sun/star/lib/uno/adapter/makefile.mk:PRJNAME = juhelper
./javaunohelper/com/sun/star/lib/uno/helper/makefile.mk:PRJNAME = juhelper
./javaunohelper/test/com/sun/star/comp/helper/makefile.mk:PRJNAME = juhelper ./javaunohelper/test/com/sun/star/lib/uno/helper/makefile.mk:PRJNAME = juhelper
./javaunohelper/util/makefile.mk:PRJNAME = juhelper
./jut/com/sun/star/tools/uno/makefile.mk:PRJNAME = jurt
./jvmfwk/plugins/sunmajor/javaenvsetup/makefile.mk:PRJNAME=javaldx
./libwpd/makefile.mk:PRJNAME=wpd
./libxmlsec/makefile.mk:PRJNAME=xmlsec1
./linguistic/qa/complex/linguistic/makefile.mk:PRJNAME = $(TARGET)
./linguistic/workben/makefile.mk:PRJNAME    = lingu
./moz/makefile.mk:PRJNAME=ooo_mozab
./neon/makefile.mk:PRJNAME=so_neon
./odk/source/OOSupport/makefile.mk:PRJNAME = oosupport
./odk/source/OOSupport/makefile.mk.ant:PRJNAME=jregistry
./offapi/com/sun/star/accessibility/makefile.mk:PRJNAME=api
./offapi/com/sun/star/animations/makefile.mk:PRJNAME=api
./offapi/com/sun/star/auth/makefile.mk:PRJNAME = auth
./offapi/com/sun/star/awt/makefile.mk:PRJNAME=api
./offapi/com/sun/star/chart/makefile.mk:PRJNAME=api
./offapi/com/sun/star/chart2/makefile.mk:PRJNAME=chart2
./offapi/com/sun/star/configuration/makefile.mk:PRJNAME=api
./offapi/com/sun/star/datatransfer/clipboard/makefile.mk:PRJNAME=api
./offapi/com/sun/star/datatransfer/dnd/makefile.mk:PRJNAME=api
./offapi/com/sun/star/datatransfer/makefile.mk:PRJNAME=api
./offapi/com/sun/star/deployment/ui/makefile.mk:PRJNAME = api
./offapi/com/sun/star/deployment/makefile.mk:PRJNAME = api
./offapi/com/sun/star/document/makefile.mk:PRJNAME=api
./offapi/com/sun/star/drawing/makefile.mk:PRJNAME=api
./offapi/com/sun/star/embed/makefile.mk:PRJNAME=api
./offapi/com/sun/star/form/binding/makefile.mk:PRJNAME=ui
./offapi/com/sun/star/form/component/makefile.mk:PRJNAME=api
./offapi/com/sun/star/form/control/makefile.mk:PRJNAME=api
./offapi/com/sun/star/form/inspection/makefile.mk:PRJNAME=api
./offapi/com/sun/star/form/submission/makefile.mk:PRJNAME=ui
./offapi/com/sun/star/form/validation/makefile.mk:PRJNAME=ui
./offapi/com/sun/star/form/makefile.mk:PRJNAME=api
./offapi/com/sun/star/formula/makefile.mk:PRJNAME=api
./offapi/com/sun/star/frame/status/makefile.mk:PRJNAME=api
./offapi/com/sun/star/frame/makefile.mk:PRJNAME=api
./offapi/com/sun/star/gallery/makefile.mk:PRJNAME=gallery
./offapi/com/sun/star/geometry/makefile.mk:PRJNAME=geometry
./offapi/com/sun/star/graphic/makefile.mk:PRJNAME=graphic
./offapi/com/sun/star/i18n/makefile.mk:PRJNAME=api
./offapi/com/sun/star/image/makefile.mk:PRJNAME=api
./offapi/com/sun/star/inspection/makefile.mk:PRJNAME=api
./offapi/com/sun/star/installation/makefile.mk:PRJNAME=api
./offapi/com/sun/star/ldap/makefile.mk:PRJNAME=api
./offapi/com/sun/star/linguistic2/makefile.mk:PRJNAME=api
./offapi/com/sun/star/mail/makefile.mk:PRJNAME=api
./offapi/com/sun/star/media/makefile.mk:PRJNAME=media
./offapi/com/sun/star/mozilla/makefile.mk:PRJNAME=api
./offapi/com/sun/star/packages/manifest/makefile.mk:PRJNAME=api
./offapi/com/sun/star/packages/zip/makefile.mk:PRJNAME=api
./offapi/com/sun/star/packages/makefile.mk:PRJNAME=api
./offapi/com/sun/star/plugin/makefile.mk:PRJNAME=api
./offapi/com/sun/star/presentation/textfield/makefile.mk:PRJNAME=api
./offapi/com/sun/star/presentation/makefile.mk:PRJNAME=api
./offapi/com/sun/star/rendering/makefile.mk:PRJNAME=rendering
./offapi/com/sun/star/resource/makefile.mk:PRJNAME=api
./offapi/com/sun/star/scanner/makefile.mk:PRJNAME=api
./offapi/com/sun/star/script/browse/makefile.mk:PRJNAME=api
./offapi/com/sun/star/script/provider/makefile.mk:PRJNAME=api
./offapi/com/sun/star/script/makefile.mk:PRJNAME=api
./offapi/com/sun/star/sdb/tools/makefile.mk:PRJNAME=api
./offapi/com/sun/star/sdb/application/makefile.mk:PRJNAME=api
./offapi/com/sun/star/sdb/makefile.mk:PRJNAME=api
./offapi/com/sun/star/sdbc/makefile.mk:PRJNAME=api
./offapi/com/sun/star/sdbcx/makefile.mk:PRJNAME=api
./offapi/com/sun/star/security/makefile.mk:PRJNAME=xmlsecurity
./offapi/com/sun/star/setup/makefile.mk:PRJNAME=api
./offapi/com/sun/star/sheet/makefile.mk:PRJNAME=api
./offapi/com/sun/star/style/makefile.mk:PRJNAME=api
./offapi/com/sun/star/svg/makefile.mk:PRJNAME=api
./offapi/com/sun/star/sync/makefile.mk:PRJNAME=api
./offapi/com/sun/star/sync2/makefile.mk:PRJNAME = api
./offapi/com/sun/star/system/makefile.mk:PRJNAME=api
./offapi/com/sun/star/table/makefile.mk:PRJNAME=api
./offapi/com/sun/star/task/makefile.mk:PRJNAME=api
./offapi/com/sun/star/text/fieldmaster/makefile.mk:PRJNAME=api
./offapi/com/sun/star/text/textfield/docinfo/makefile.mk:PRJNAME=api
./offapi/com/sun/star/text/textfield/makefile.mk:PRJNAME=api
./offapi/com/sun/star/text/makefile.mk:PRJNAME=api
./offapi/com/sun/star/ucb/smart/makefile.mk:PRJNAME=api
./offapi/com/sun/star/ucb/makefile.mk:PRJNAME=api
./offapi/com/sun/star/makefile.mk:PRJNAME=api
./offapi/com/sun/star/ui/dialogs/makefile.mk:PRJNAME=api
./offapi/com/sun/star/ui/makefile.mk:PRJNAME=ui
./offapi/com/sun/star/util/makefile.mk:PRJNAME=api
./offapi/com/sun/star/view/makefile.mk:PRJNAME=api
./offapi/com/sun/star/xforms/makefile.mk:PRJNAME=api
./offapi/com/sun/star/xml/crypto/sax/makefile.mk:PRJNAME=xmlsecurity
./offapi/com/sun/star/xml/crypto/makefile.mk:PRJNAME=xmlsecurity
./offapi/com/sun/star/xml/csax/makefile.mk:PRJNAME=xmlsecurity
./offapi/com/sun/star/xml/dom/events/makefile.mk:PRJNAME=api
./offapi/com/sun/star/xml/dom/views/makefile.mk:PRJNAME=api
./offapi/com/sun/star/xml/dom/makefile.mk:PRJNAME=api
./offapi/com/sun/star/xml/input/makefile.mk:PRJNAME = api
./offapi/com/sun/star/xml/sax/makefile.mk:PRJNAME=api
./offapi/com/sun/star/xml/wrapper/makefile.mk:PRJNAME=xmlsecurity
./offapi/com/sun/star/xml/xpath/makefile.mk:PRJNAME=api
./offapi/com/sun/star/xml/makefile.mk:PRJNAME=api
./offapi/drafts/com/sun/star/form/makefile.mk:PRJNAME=ui
./package/qa/storages/makefile.mk:PRJNAME = $(TARGET)
./package/qa/ofopxmlstorages/makefile.mk:PRJNAME = $(TARGET)
./psprint_config/configuration/ppds/makefile.mk:PRJNAME=psp_config
./rsc/source/res/makefile.mk:PRJNAME=RSC
./rsc/source/rscpp/makefile.mk:PRJNAME=CPP
./python/makefile.mk:PRJNAME=so_python
./qadevOOo/runner/base/makefile.mk:PRJNAME = OOoRunner
./qadevOOo/runner/basicrunner/basichelper/makefile.mk:PRJNAME = OOoRunner
./qadevOOo/runner/basicrunner/makefile.mk:PRJNAME = OOoRunner
./qadevOOo/runner/complexlib/makefile.mk:PRJNAME = OOoRunner
./qadevOOo/runner/convwatch/makefile.mk:PRJNAME = OOoRunner
./qadevOOo/runner/helper/makefile.mk:PRJNAME = OOoRunner
./qadevOOo/runner/lib/makefile.mk:PRJNAME = OOoRunner
./qadevOOo/runner/org/openoffice/makefile.mk:PRJNAME = OOoRunner
./qadevOOo/runner/share/makefile.mk:PRJNAME = OOoRunner
./qadevOOo/runner/stats/makefile.mk:PRJNAME = OOoRunner
./qadevOOo/runner/util/compare/makefile.mk:PRJNAME = OOoRunner
./qadevOOo/runner/util/makefile.mk:PRJNAME = OOoRunner
./qadevOOo/runner/makefile.mk:PRJNAME = OOoRunner
./qadevOOo/testdocs/backend/org/openoffice/makefile.mk:PRJNAME = JavaSystemBackend ./qadevOOo/testdocs/qadevlibs/source/com/sun/star/cmp/makefile.mk:PRJNAME = MyPersistObjectImpl
./qadevOOo/testdocs/qadevlibs/source/test/makefile.mk:PRJNAME = JobExecutor
./qadevOOo/makefile.mk:PRJNAME = OOoRunner
./rdbmaker/source/codemaker/makefile.mk:PRJNAME=codemaker
./rdbmaker/source/rdbmaker/makefile.mk:PRJNAME=codemaker
./rhino/makefile.mk:PRJNAME=ooo_rhino
./rvpapi/com/sun/star/portal/client/makefile.mk:PRJNAME=portalapi
./sal/cpprt/makefile.mk:PRJNAME=SAL
./sax/test/sax/makefile.mk:PRJNAME=extensions
./sax/test/makefile.mk:PRJNAME=extensions
./sc/qa/complex/dataPilot/interfaceTests/beans/makefile.mk:PRJNAME = $(TARGET) ./sc/qa/complex/dataPilot/interfaceTests/container/makefile.mk:PRJNAME = $(TARGET) ./sc/qa/complex/dataPilot/interfaceTests/sheet/makefile.mk:PRJNAME = $(TARGET)
./sc/workben/makefile.mk:PRJNAME=workben
./scaddins/source/analysis/makefile.mk:PRJNAME=addin
./scaddins/source/datefunc/makefile.mk:PRJNAME=addin
./sch/source/addin/makefile.mk:PRJNAME=schaddin
./scp2/source/sdkoo/makefile.mk:PRJNAME=scp2so
./scp2/source/ure/makefile.mk:PRJNAME := scp2so
./scripting/examples/makefile.mk:PRJNAME=scriptinginstaller
./scripting/workben/ifc/scripting/makefile.mk:PRJNAME = testcase
./scripting/workben/mod/_scripting/makefile.mk:PRJNAME = testcase
./scripting/workben/makefile.mk:PRJNAME=scriptinginstaller
./sd/workben/testdll/makefile:PRJNAME=test
./sfx2/qa/complex/DocHelper/makefile.mk:PRJNAME = $(TARGET)
./sfx2/qa/complex/makefile.mk:PRJNAME = $(TARGET)
./shell/source/unix/sysshell/makefile.mk:PRJNAME=SHELL
./shell/source/win32/sysshell/makefile.mk:PRJNAME=SHELL
./shell/source/win32/workbench/makefile.mk:PRJNAME=        sysshell
./smoketestoo_native/statjars/makefile.mk:PRJNAME=test10
./smoketestoo_native/makefile.mk:PRJNAME=test10
./soltools/ldump/makefile.mk:PRJNAME=ldump
./stlport/makefile.mk:PRJNAME=so_stlport
./stoc/test/javavm/testapplet/makefile.mk:PRJNAME = testapplet
./stoc/test/javavm/testcomponent/makefile.mk:PRJNAME = testcomponent
./svtools/bmpmaker/makefile.mk:PRJNAME=bmpmaker
./svtools/unx/source/svdde/makefile.mk:PRJNAME=SVTOOLS
./svx/workben/makefile.mk:PRJNAME=SVX
./sw/source/filter/ww8/dump/makefile.mk:PRJNAME=DUMP8
./testshl2/source/testshlrunner/makefile.mk:PRJNAME = TestShl2Runner
./testshl2/workben/uno/makefile.mk:PRJNAME=sal
./testtools/source/bridgetest/pyuno/makefile.mk:PRJNAME=pyuno
./tools/source/communi/makefile.mk:PRJNAME=TOOLS
./tools/source/testtoolloader/makefile.mk:PRJNAME=TOOLS
./tools/unx/source/dll/makefile.mk:PRJNAME=TOOLS
./tools/unx/source/fastfsys/makefile.mk:PRJNAME=TOOLS
./tools/util/makefile.mk:PRJNAME=TOOLS
./tools/win/source/dll/makefile.mk:PRJNAME=TOOLS
./tools/win/source/fastfsys/makefile.mk:PRJNAME=TOOLS
./tools/workben/makefile.mk:PRJNAME = tl
./ucb/qa/complex/tdoc/interfaces/makefile.mk:PRJNAME = $(TARGET)
./ucb/qa/complex/tdoc/makefile.mk:PRJNAME = $(TARGET)
./ucbhelper/workben/myucp/makefile.mk:PRJNAME=UCBHELPER
./ucbhelper/workben/ucbexplorer/makefile.mk:PRJNAME=UCBEXPLORER
./udkapi/com/sun/star/beans/makefile.mk:PRJNAME=api
./udkapi/com/sun/star/bridge/oleautomation/makefile.mk:PRJNAME=api
./udkapi/com/sun/star/bridge/makefile.mk:PRJNAME=api
./udkapi/com/sun/star/connection/makefile.mk:PRJNAME=api
./udkapi/com/sun/star/container/makefile.mk:PRJNAME=api
./udkapi/com/sun/star/corba/giop/makefile.mk:PRJNAME=api
./udkapi/com/sun/star/corba/iiop/makefile.mk:PRJNAME=api
./udkapi/com/sun/star/corba/iop/makefile.mk:PRJNAME=api
./udkapi/com/sun/star/corba/makefile.mk:PRJNAME=api
./udkapi/com/sun/star/io/makefile.mk:PRJNAME=api
./udkapi/com/sun/star/java/makefile.mk:PRJNAME=api
./udkapi/com/sun/star/lang/makefile.mk:PRJNAME=api
./udkapi/com/sun/star/loader/makefile.mk:PRJNAME=api
./udkapi/com/sun/star/reflection/makefile.mk:PRJNAME=api
./udkapi/com/sun/star/registry/makefile.mk:PRJNAME=api
./udkapi/com/sun/star/script/makefile.mk:PRJNAME=api
./udkapi/com/sun/star/task/makefile.mk:PRJNAME=api
./udkapi/com/sun/star/test/bridge/makefile.mk:PRJNAME=api
./udkapi/com/sun/star/test/performance/makefile.mk:PRJNAME=api
./udkapi/com/sun/star/test/makefile.mk:PRJNAME=api
./udkapi/com/sun/star/uno/makefile.mk:PRJNAME=api
./udkapi/com/sun/star/uri/makefile.mk:PRJNAME := api
./udkapi/com/sun/star/util/logging/makefile.mk:PRJNAME =logging
./udkapi/com/sun/star/util/makefile.mk:PRJNAME=api
./udkapi/com/sun/star/makefile.mk:PRJNAME=api
./udm/source/unittest/makefile.mk:PRJNAME=cosv
./vcl/qa/complex/memCheck/makefile.mk:PRJNAME = $(TARGET)
./vcl/qa/complex/persistent_window_states/makefile.mk:PRJNAME = $(TARGET)
./writerperfect/source/filter/makefile.mk:PRJNAME=filter
./writerperfect/util/makefile.mk:PRJNAME=wpft
./xmerge/java/org/openoffice/xmerge/converter/xml/sxw/wordsmith/makefile.mk:PRJNAME=converter ./xmerge/java/org/openoffice/xmerge/converter/xml/xslt/docbook/docbookfilter/makefile.mk:PRJNAME = filter ./xmerge/java/org/openoffice/xmerge/xmergebridge/FlatXml/cpp/makefile.mk:PRJNAME=FlatXml ./xmerge/java/org/openoffice/xmerge/xmergebridge/FlatXml/java/makefile.mk:PRJNAME = odk
./xmlhelp/source/helpprovider/makefile.mk:PRJNAME=XMLHELP
./xmlsecurity/workben/makefile.mk:PRJNAME=SV


#!/usr/bin/perl

chdir $ENV{SOLARSRC} || die "cannot chdir \$SOLARSRC";
open(IN, "srcfind2 . -E '^[ \t]*PRJNAME[ \t]*:?=' |") ||
        die "cannot fork srcfind2";
while (<IN>)
{
        if (m|^\./([^/:]+)[^:]*:[ \t]*PRJNAME[ \t]*:?=[ \t]*(.*)[ \t]*$|)
        {
                print $_ if $1 ne $2;
        }
}
close(IN);
path=$1
shift
find "$path" -type d \( -name CVS -o -name common -o -name common.pro -o -name 
'unxlngi*' -o -name 'unxsoli*' -o -name 'unxsols*' -o -name 'wntmsci*' \) 
-prune -o -type f -print0 | xargs --null grep "$@"

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to