diff --git a/Projects/Athena/package_filters.txt b/Projects/Athena/package_filters.txt
index c6654ba6601bc396e05fa73ff5f5ba0e7b64e586..21afe1a87d8a76d1623fdb93e3378fb6a92d7ede 100644
--- a/Projects/Athena/package_filters.txt
+++ b/Projects/Athena/package_filters.txt
@@ -59,7 +59,6 @@
 # obsolete packages to be removed in a second step
 - Tracking/TrkTools/TrkSegmentConverter
 - Tools/CoolDozer
-- Tools/CodeCheck
 
 # Huge D3PD librarys not really useful any more
 - PhysicsAnalysis/D3PDMaker/InDetD3PDMaker
diff --git a/Tools/CodeCheck/CMakeLists.txt b/Tools/CodeCheck/CMakeLists.txt
deleted file mode 100644
index 45fde9ae1508ede35c9b4b0db3d0511448139fb6..0000000000000000000000000000000000000000
--- a/Tools/CodeCheck/CMakeLists.txt
+++ /dev/null
@@ -1,6 +0,0 @@
-################################################################################
-# Package: CodeCheck
-################################################################################
-
-# Declare the package name:
-atlas_subdir( CodeCheck )
diff --git a/Tools/CodeCheck/doc/README b/Tools/CodeCheck/doc/README
deleted file mode 100755
index 034b8d472aec279127c296d39137722a204ae1f3..0000000000000000000000000000000000000000
--- a/Tools/CodeCheck/doc/README
+++ /dev/null
@@ -1,122 +0,0 @@
-package CodeCheck
-
-author Albrand Solveig <albrand@isn.in2p3.fr>
-##########################################################################
-Version 01-00-02
-# added undocumented option -Zall
-Version 01-01-00
-# added the rulechecker tool (10 december 2002)
-Version 01-00-01
-# changed codewizard config file name from .psrc to psrc
-Version 01-00-00 
-## Limited Check of Atlas C++ coding rules using CodeWizard from Parasoft.
-###############################################
-# See the following page for complete details
-http://atlas.web.cern.ch/Atlas/GROUPS/SOFTWARE/OO/Development/qa/Tools/
-# Pre-Conditions:
-Your code should compile without error. (but see below)
-# rulechecker is a code verifier. It is not yet complete, but it is tailored for
-Atlas coding rules.
-# codewizard is a code verifier. It tests a different set of rules, but
-currently cannot cope with part of the Boost Library which is used by Storegate
-
-# Execution (from the ..../cmt directory of your package):
-codewizard : 
-
- gmake codewizard
- 
- Note that codewizard has been configured NOT to call the compiler after its
- own execution
- 
-rulechecker:
-
- gmake rulechecker
- 
-# Output :
-codewizard : (one file per package)
- The file is called $(CODECHECK_OUTPUT_DIRECTORY)/$(version).cwrpt
- e.g. LArBookkeeping-00-00-05.cwrpt.
- 
- rulechecker: (one file per cxx source file)
- $(CODECHECK_OUTPUT_DIRECTORY)/$(name).viol
- 
- By default the output goes into ../CodeCheck/[codewizard|rulechecker]. 
- You can override this
- (see web page referenced above)
-
-#######################################################
-More details on codewizard
-#######################################################
- This package is called CodeCheck.
- It was originally for the now obsolete "CodeCheck" tool
- Version 01-00-00 installs a limited version of "codewizard" from Parasoft.
-
-In the  ../rules directory
-
- 
- in ../rules are the definition of the rules to be applied by codewizard
- (1)	The "user defined rules" *.rule. These are specific Atlas rules.
- (2)	And a textfile which lists the user defined rules which will be applied
- (3)	There should be at least a file called by default ".psrc" which is the configuration for codewizard.
-
-
- The configuration file ../rules/.psrc should contain :
- (1)
-	The definition of the default output file - which is be overruled by an option
-	on the above line " -Zoi "report_file filename""	
- 	
- (2) The enumeration of codewizard built-in rules which we want to use. 22 of
- the Atlas rules are concerned.
- (3) The definition of other rules that codewizard will include
-	(optional rules and home-made rules)
-    i.e. gives the name of the text file containing the list
-
-
-#####################################################
-	
- The lxplus path is  "/pttools/CodeWizard/codewizard/lib.linux2"
- 
- codewizard must be installed on the host machine 
- and the execution called in the make file fragment is
- 
- ${CODECHECK}/codewizard
-#############################################################
-The paths  to find the tool:
- If you are running on lxplus there is no problem.
-Codewizard is installed. Otherwise you must install it, and override the
-following macros.
-####################################################
-macro CODECHECK_TOP ""\
-	CERN "/pttools/CodeWizard/codewizard"
-	
-macro ARCH ""\
-	Linux "linux2"
-# not done for SOLARIS	
-	
-	
-macro CODECHECK "${CODECHECK_TOP}/bin.${ARCH}"
-
-
-NOTE:
-Code parsers are not perfect, and their output should be taken merely as a useful
-guide.
-################################
-#
-14/03/02 - added option -Zall
-It turns out that the codewizard parser can sometimes spot things incorrect code
-that the compiler has passed. By default, codewizard does not tell you when it
-does this, it just produces no output.
-The option -Zall will tell you that there is a parsing problem, which may
-indicate an obscure error in the C++ code.
-##############################################
-################################################
-More details on rulechecker
-rulechecker is installed in the common LCG dist area at CERN.
-/afs/cern.ch/sw/lcg/contrib/rulechecker
-This directory also contains the complete userGuide.
-For installing at other sites please consult Solveig Albrand.
-The web site referenced above contains the list of Atlas Rules currently
-checked.
-Some parsing problems remain.
-####################################
-
diff --git a/Tools/CodeCheck/rules/AtlasNC1.rule b/Tools/CodeCheck/rules/AtlasNC1.rule
deleted file mode 100755
index 4c5bf2e201592882e0c6ce36d104c96413c69f34..0000000000000000000000000000000000000000
Binary files a/Tools/CodeCheck/rules/AtlasNC1.rule and /dev/null differ
diff --git a/Tools/CodeCheck/rules/AtlasNC2.rule b/Tools/CodeCheck/rules/AtlasNC2.rule
deleted file mode 100755
index 42800beb932be424f8edcdd447ec8e7263bf2e98..0000000000000000000000000000000000000000
Binary files a/Tools/CodeCheck/rules/AtlasNC2.rule and /dev/null differ
diff --git a/Tools/CodeCheck/rules/AtlasNC5a.rule b/Tools/CodeCheck/rules/AtlasNC5a.rule
deleted file mode 100755
index a38c17eabf4e2a9535bc706e91fab55ed8088849..0000000000000000000000000000000000000000
Binary files a/Tools/CodeCheck/rules/AtlasNC5a.rule and /dev/null differ
diff --git a/Tools/CodeCheck/rules/AtlasNC5b.rule b/Tools/CodeCheck/rules/AtlasNC5b.rule
deleted file mode 100755
index 54519fafeb77669706ed764549de649e0340ba94..0000000000000000000000000000000000000000
Binary files a/Tools/CodeCheck/rules/AtlasNC5b.rule and /dev/null differ
diff --git a/Tools/CodeCheck/rules/AtlasNC5c.rule b/Tools/CodeCheck/rules/AtlasNC5c.rule
deleted file mode 100755
index c66665d3728853c0fe1666b722ec3d0eb151aa70..0000000000000000000000000000000000000000
Binary files a/Tools/CodeCheck/rules/AtlasNC5c.rule and /dev/null differ
diff --git a/Tools/CodeCheck/rules/AtlasNC6a.rule b/Tools/CodeCheck/rules/AtlasNC6a.rule
deleted file mode 100755
index ba02f54dfdec367ea7f5531657d4e48acc8d7ff9..0000000000000000000000000000000000000000
Binary files a/Tools/CodeCheck/rules/AtlasNC6a.rule and /dev/null differ
diff --git a/Tools/CodeCheck/rules/AtlasNC6b.rule b/Tools/CodeCheck/rules/AtlasNC6b.rule
deleted file mode 100755
index 8095d84ef2c8bb30d0e059e805d10062876759cb..0000000000000000000000000000000000000000
Binary files a/Tools/CodeCheck/rules/AtlasNC6b.rule and /dev/null differ
diff --git a/Tools/CodeCheck/rules/AtlasNC6c.rule b/Tools/CodeCheck/rules/AtlasNC6c.rule
deleted file mode 100755
index 1e3c4dc0f4ab58c288ca35ff032c067778f581cd..0000000000000000000000000000000000000000
Binary files a/Tools/CodeCheck/rules/AtlasNC6c.rule and /dev/null differ
diff --git a/Tools/CodeCheck/rules/AtlasNC6d.rule b/Tools/CodeCheck/rules/AtlasNC6d.rule
deleted file mode 100755
index 15236cebfb07206b0c6c9ff1f6d69e0277f9060e..0000000000000000000000000000000000000000
Binary files a/Tools/CodeCheck/rules/AtlasNC6d.rule and /dev/null differ
diff --git a/Tools/CodeCheck/rules/AtlasNC7.rule b/Tools/CodeCheck/rules/AtlasNC7.rule
deleted file mode 100755
index fafaf541a7b376f555e23a8bf2c3d790f7031d66..0000000000000000000000000000000000000000
Binary files a/Tools/CodeCheck/rules/AtlasNC7.rule and /dev/null differ
diff --git a/Tools/CodeCheck/rules/AtlasNI2.rule b/Tools/CodeCheck/rules/AtlasNI2.rule
deleted file mode 100755
index b8119706704d946bafb1126cc2011e417ccb88ce..0000000000000000000000000000000000000000
Binary files a/Tools/CodeCheck/rules/AtlasNI2.rule and /dev/null differ
diff --git a/Tools/CodeCheck/rules/frame.htm b/Tools/CodeCheck/rules/frame.htm
deleted file mode 100755
index 4e4e7e9d5574828634cce3ccda75a044171c6c10..0000000000000000000000000000000000000000
--- a/Tools/CodeCheck/rules/frame.htm
+++ /dev/null
@@ -1,5 +0,0 @@
-<HTML><HEAD><TITLE>CodeWizard for C,C++</TITLE></HEAD>
-<FRAMESET cols=30%,70%>
-<frame src="index_number.htm"  name="index">
-<frame src="sola.htm" name="rule">
-</FRAMESET></HTML>
diff --git a/Tools/CodeCheck/rules/index_name.htm b/Tools/CodeCheck/rules/index_name.htm
deleted file mode 100755
index 901d9b0b0e7fb165678e2b3b69878fe008459da5..0000000000000000000000000000000000000000
--- a/Tools/CodeCheck/rules/index_name.htm
+++ /dev/null
@@ -1,5 +0,0 @@
-<TITLE>Rule Index</TITLE>
-<A HREF="index_number.htm" target="index">Index by number</A><P>
-<STRONG>Index by name</STRONG><P>
-<P><A HREF="/pttools/CodeWizard/codewizard/rules/frame.htm" target="_top">Default Rules</A><BR></P>
-<A HREF="sola.htm" target="rule">sola : 9001</A><BR>
diff --git a/Tools/CodeCheck/rules/index_number.htm b/Tools/CodeCheck/rules/index_number.htm
deleted file mode 100755
index 81b4619fed96e125fe4df7251c05d703e528f9bb..0000000000000000000000000000000000000000
--- a/Tools/CodeCheck/rules/index_number.htm
+++ /dev/null
@@ -1,5 +0,0 @@
-<TITLE>Rule Index</TITLE>
-<A HREF="index_name.htm" target="index">Index by name</A><P>
-<STRONG>Index by number</STRONG><P>
-<P><A HREF="/pttools/CodeWizard/codewizard/rules/frame.htm" target="_top">Default Rules</A><BR></P>
-<A HREF="sola.htm" target="rule">9001 : sola</A><BR>
diff --git a/Tools/CodeCheck/rules/namingRules.txt b/Tools/CodeCheck/rules/namingRules.txt
deleted file mode 100755
index 9704617edb860ab11aa7871bc2e5b969e491faa8..0000000000000000000000000000000000000000
--- a/Tools/CodeCheck/rules/namingRules.txt
+++ /dev/null
@@ -1,15 +0,0 @@
-AtlasNI2.rule
-AtlasNC1.rule
-AtlasNC2.rule
-AtlasNC5a.rule
-AtlasNC5b.rule
-AtlasNC5c.rule
-AtlasNC6a.rule
-AtlasNC6b.rule
-AtlasNC6c.rule
-AtlasNC6d.rule
-AtlasNC7.rule
-
-
-
-
diff --git a/Tools/CodeCheck/rules/psrc b/Tools/CodeCheck/rules/psrc
deleted file mode 100755
index e0d4dc22236fdf91630b7284a62465d6c98d9db7..0000000000000000000000000000000000000000
--- a/Tools/CodeCheck/rules/psrc
+++ /dev/null
@@ -1,105 +0,0 @@
-# psrcdump -v -a 
-# the above line will test the configuration "seen" by codewizard
-# Uncomment the following line if you do NOT want the compiler to be called
-# after analysis
-  codewizard.analyze_only on
-
-# by default the compiler called is g++ on LINUX
-# but the following line will override this
-#codewizard.compiler_cpp C++_COMPILERNAME
-# CodeWizard will add the flags if necessary.
-#codewizard.compiler_flags flags
-
-# the file for output
-# overridden in the CodeCheck requirements file
-codewizard.report_file codewizard.rpt
-
-# set the following to "off" to append to the output file
-# You need to do this when you run codewizard on a complete package
-# otherwise you get only the results for the last file checked
-codewizard.report_overwrite off
-
-# insra is the codewizard gui
-#codewizard.report_file insra
-
-# suppress all the codewizard rules by default
- codewizard.suppress all
-
-# Then add back just the ones we want
-# Atlas defined rules
-# First say we want the user defined rules
- codewizard.unsuppress item user-*
-# Then tell codewizard where they are 
-# Give a text file which contains a list of rules
-# namingRules.txt has 11 rules defined with RuleWizard
-# which correspond to 5 of the Atlas coding rules
-# the rules themselves must be files in the same directory as the list file
-# For CMT use this is defined in the CMT requirements file
-# codewizard.rulesdirlist namingRules.txt  
-#
-# Now we just select the 21 rules which are
-# built in to code wizard and which correspond to Atlas rules
-#
-# Atlas CF2
-codewizard.unsuppress item ucs35
-# Atlas CF5
-codewizard.unsuppress item ucs36
-# Atlas CL5
-codewizard.unsuppress item ecpp-13
-# Atlas CL6
-codewizard.unsuppress item ecpp-31
-# Atlas CL8
-codewizard.unsuppress item ecpp-11
-# Atlas CL9
-codewizard.unsuppress item ecpp-17
-# Atlas CC2
-codewizard.unsuppress item mecpp-2
-# Atlas CC3
-codewizard.unsuppress item ucs06
-# Atlas CI3
-codewizard.unsuppress item ecpp-22
-# Atlas CI4
-codewizard.unsuppress item ecpp-15
-# Atlas CI7
-codewizard.unsuppress item ucs18
-# Atlas CN1
-codewizard.unsuppress item ecpp-05
-# Atlas CB1
-codewizard.unsuppress item ecpp-20
-# Atlas CB2
-codewizard.unsuppress item ecpp-14
-# Atlas CB4
-codewizard.unsuppress item mecpp-24
-# Atlas CB5
-codewizard.unsuppress item ucs26
-# Atlas CA1
-codewizard.unsuppress item ecpp-03
-# Atlas CA2
-codewizard.unsuppress item ecpp-02
-# Atlas CA3
-codewizard.unsuppress item ucs22
-# Atlas CP7
-codewizard.unsuppress item ucs27
-# Atlas SG1
-codewizard.unsuppress item ucs08
-
-# There are a lot of paths that we don't need to look at
-#
- codewizard.suppress_file /usr/local/gcc-alt-2.95.2/*
- codewizard.suppress_file /afs/cern.ch/atlas/offline/*
-# codewizard.suppress_file /afs/cern.ch/atlas/software/dist/*
- codewizard.suppress_file /afs/cern.ch/sw/lhcxx/*
-#
-# And some files that can be ignored
-codewizard.file_ignore *_load.cxx
-codewizard.file_ignore *_entries.cxx
-#
-# This option gets over a problem in the g++ treatment of std namespace
-codewizard.CompilerDeficient CanIgnoreStd
-
- 
-
-
-
-
-
diff --git a/Tools/CodeCheck/rules/psrcPackage b/Tools/CodeCheck/rules/psrcPackage
deleted file mode 100755
index 3ed6a145c375afb469378c4263ecc4cf0c64efff..0000000000000000000000000000000000000000
--- a/Tools/CodeCheck/rules/psrcPackage
+++ /dev/null
@@ -1,111 +0,0 @@
-# psrcdump -v -a 
-# the above line will test the configuration "seen" by codewizard
-# Uncomment the following line if you do NOT want the compiler to be called
-# after analysis
-  codewizard.analyze_only on
-
-# by default the compiler called is g++ on LINUX
-# but the following line will override this
-#codewizard.compiler_cpp C++_COMPILERNAME
-# CodeWizard will add the flags if necessary.
-#codewizard.compiler_flags flags
-
-# the file for output
-# overridden in the CodeCheck requirements file
-codewizard.report_file codewizard.rpt
-
-# set the following to "off" to append to the output file
-# You need to do this when you run codewizard on a complete package
-# otherwise you get only the results for the last file checked
-codewizard.report_overwrite off
-
-# insra is the codewizard gui
-#codewizard.report_file insra
-
-# suppress all the codewizard rules by default
- codewizard.suppress all
-
-# Then add back just the ones we want
-# Atlas defined rules
-# First say we want the user defined rules
- codewizard.unsuppress item user-*
-# Then tell codewizard where they are 
-# Give a text file which contains a list of rules
-# namingRules.txt has 11 rules defined with RuleWizard
-# which correspond to 5 of the Atlas coding rules
-# the rules themselves must be files in the same directory as the list file
-# For CMT use this is defined in the CMT requirements file
-# codewizard.rulesdirlist namingRules.txt  
-#
-# Now we just select the 21 rules which are
-# built in to code wizard and which correspond to Atlas rules
-#
-# Atlas CF2
-codewizard.unsuppress item ucs35
-# Atlas CF5
-codewizard.unsuppress item ucs36
-# Atlas CL5
-codewizard.unsuppress item ecpp-13
-# Atlas CL6
-codewizard.unsuppress item ecpp-31
-# Atlas CL8
-codewizard.unsuppress item ecpp-11
-# Atlas CL9
-codewizard.unsuppress item ecpp-17
-# Atlas CC2
-codewizard.unsuppress item mecpp-2
-# Atlas CC3
-codewizard.unsuppress item ucs06
-# Atlas CI3
-codewizard.unsuppress item ecpp-22
-# Atlas CI4
-codewizard.unsuppress item ecpp-15
-# Atlas CI7
-codewizard.unsuppress item ucs18
-# Atlas CN1
-codewizard.unsuppress item ecpp-05
-# Atlas CB1
-codewizard.unsuppress item ecpp-20
-# Atlas CB2
-codewizard.unsuppress item ecpp-14
-# Atlas CB4
-codewizard.unsuppress item mecpp-24
-# Atlas CB5
-codewizard.unsuppress item ucs26
-# Atlas CA1
-codewizard.unsuppress item ecpp-03
-# Atlas CA2
-codewizard.unsuppress item ecpp-02
-# Atlas CA3
-codewizard.unsuppress item ucs22
-# Atlas CP7
-codewizard.unsuppress item ucs27
-# Atlas SG1
-codewizard.unsuppress item ucs08
-
-# There are a lot of paths that we don't need to look at
-#
- codewizard.suppress_file /usr/local/gcc-alt-2.95.2/*
- codewizard.suppress_file /usr/local/gcc-alt-2.95.2/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/include/*
- codewizard.suppress_file /afs/cern.ch/atlas/offline/*
- codewizard.suppress_file /afs/cern.ch/sw/lhcxx/*
- 
-# this line should be commented out if you want to use codewizard on a whole release 
- codewizard.suppress_file /afs/cern.ch/atlas/software/dist/*
- 
- 
- 
-#
-# And some files that can be ignored
-codewizard.file_ignore *_load.cxx
-codewizard.file_ignore *_entries.cxx
-#
-# This option gets over a problem in the g++ treatment of std namespace
-codewizard.CompilerDeficient CanIgnoreStd
-
- 
-
-
-
-
-
diff --git a/Tools/CodeCheck/rules/psrcRelease b/Tools/CodeCheck/rules/psrcRelease
deleted file mode 100755
index a233c0996f626f4dcf9af91b66c59f13a0dd4ced..0000000000000000000000000000000000000000
--- a/Tools/CodeCheck/rules/psrcRelease
+++ /dev/null
@@ -1,108 +0,0 @@
-# psrcdump -v -a 
-# the above line will test the configuration "seen" by codewizard
-# Uncomment the following line if you do NOT want the compiler to be called
-# after analysis
-  codewizard.analyze_only on
-
-# by default the compiler called is g++ on LINUX
-# but the following line will override this
-#codewizard.compiler_cpp C++_COMPILERNAME
-# CodeWizard will add the flags if necessary.
-#codewizard.compiler_flags flags
-
-# the file for output
-# overridden in the CodeCheck requirements file
-codewizard.report_file codewizard.rpt
-
-# set the following to "off" to append to the output file
-# You need to do this when you run codewizard on a complete package
-# otherwise you get only the results for the last file checked
-codewizard.report_overwrite off
-
-# insra is the codewizard gui
-#codewizard.report_file insra
-
-# suppress all the codewizard rules by default
- codewizard.suppress all
-
-# Then add back just the ones we want
-# Atlas defined rules
-# First say we want the user defined rules
- codewizard.unsuppress item user-*
-# Then tell codewizard where they are 
-# Give a text file which contains a list of rules
-# namingRules.txt has 11 rules defined with RuleWizard
-# which correspond to 5 of the Atlas coding rules
-# the rules themselves must be files in the same directory as the list file
-# For CMT use this is defined in the CMT requirements file
-# codewizard.rulesdirlist namingRules.txt  
-#
-# Now we just select the 21 rules which are
-# built in to code wizard and which correspond to Atlas rules
-#
-# Atlas CF2
-codewizard.unsuppress item ucs35
-# Atlas CF5
-codewizard.unsuppress item ucs36
-# Atlas CL5
-codewizard.unsuppress item ecpp-13
-# Atlas CL6
-codewizard.unsuppress item ecpp-31
-# Atlas CL8
-codewizard.unsuppress item ecpp-11
-# Atlas CL9
-codewizard.unsuppress item ecpp-17
-# Atlas CC2
-codewizard.unsuppress item mecpp-2
-# Atlas CC3
-codewizard.unsuppress item ucs06
-# Atlas CI3
-codewizard.unsuppress item ecpp-22
-# Atlas CI4
-codewizard.unsuppress item ecpp-15
-# Atlas CI7
-codewizard.unsuppress item ucs18
-# Atlas CN1
-codewizard.unsuppress item ecpp-05
-# Atlas CB1
-codewizard.unsuppress item ecpp-20
-# Atlas CB2
-codewizard.unsuppress item ecpp-14
-# Atlas CB4
-codewizard.unsuppress item mecpp-24
-# Atlas CB5
-codewizard.unsuppress item ucs26
-# Atlas CA1
-codewizard.unsuppress item ecpp-03
-# Atlas CA2
-codewizard.unsuppress item ecpp-02
-# Atlas CA3
-codewizard.unsuppress item ucs22
-# Atlas CP7
-codewizard.unsuppress item ucs27
-# Atlas SG1
-codewizard.unsuppress item ucs08
-
-# There are a lot of paths that we don't need to look at
-#
- codewizard.suppress_file /usr/local/gcc-alt-2.95.2/*
-# codewizard.suppress_file /usr/local/gcc-alt-2.95.2/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/include/*
- codewizard.suppress_file /afs/cern.ch/atlas/offline/*
- codewizard.suppress_file /afs/cern.ch/sw/lhcxx/*
- 
-# This line must be commented out for a whole release 
-# codewizard.suppress_file /afs/cern.ch/atlas/software/dist/*
-#
-# And some files that can be ignored
-codewizard.file_ignore *_load.cxx
-codewizard.file_ignore *_entries.cxx
-#
-# This option gets over a problem in the g++ treatment of std namespace
-codewizard.CompilerDeficient CanIgnoreStd
-
- 
-
-
-
-
-
diff --git a/Tools/CodeCheck/share/truncate.py b/Tools/CodeCheck/share/truncate.py
deleted file mode 100755
index 12361591d967205670af67a0456974c1f792f7cb..0000000000000000000000000000000000000000
--- a/Tools/CodeCheck/share/truncate.py
+++ /dev/null
@@ -1,57 +0,0 @@
-import sys
-import os
-from os.path import join
-import string
-from getopt import getopt, GetoptError
-
-def test():
-    lines = []
-    lines.append(' library -s/absolute/somewhere -a=option xxxx yyyy\n')
-    lines.append('a line that does not interest us\n')
-    lines.append(' library -s/absolute/somewhereElse -a=option aaa\n')
-    doit(lines)
-
-def notest():
-   lines = os.popen('cmt show constituents').readlines()
-   doit(lines)
-
-def getSourceDirectory(tokens):
-    sDir = ''
-    for token in tokens:
-        if token.startswith('-s'): sDir = token[2:]
-    return sDir
-   
-def doit(lines):
-    files = '' # the final list of files
-    for line in lines:
-        tokens = string.split(line) # split line into tokens
-        tokens = [string.strip(token) for token in tokens] # clean-up whitespace
-        if tokens[0] != 'library': continue # a library?
-        # get the source dir if any (given by '-s=sDir')
-        sDir = getSourceDirectory(tokens)
-        # remove option tokens (have form '-o=xxxx'. first token is 'library', second is
-        # library name - so start from the third
-        tokens = [join(sDir,token) for token in tokens[2:]  if not token.startswith('-')]
-        # accumulate the list of files from the different libraries
-        files += string.join(tokens)+' '
-
-    print files # output the list by printing it
-
-if __name__ == '__main__':
-    try:
-        opts,args = getopt(sys.argv[1:], 't')
-    except GetoptError:
-        print 'unknown option(s)', opt, args
-
-    testMode = False
-    for o,a in opts:
-        print o
-        print a
-        if o == '-t': testMode=True
-
-    if testMode:
-        print 'testing'
-        test()
-    else:
-        notest()
-