summaryrefslogtreecommitdiff
path: root/decompress.py
diff options
context:
space:
mode:
authorNoel Power <noel.power@suse.com>2013-10-11 11:54:55 +0100
committerNoel Power <noel.power@suse.com>2013-10-11 15:15:16 +0100
commit7c8934719fcb31d319d68ab477d37464b02f49af (patch)
tree63fef3e918d11076bd71087b558c7d1e7d2cb42e /decompress.py
parentdc3f334106a628dc818a3e18d4d87cf03a6fe3ae (diff)
Added remaining record readers for dir stream, added licences hdrs to files
Some notes: a) yes the formatted output is not as good as it should be ( feel free to improve ) * e.g. GUID it's just bytes outputted no formating at all. * nested messages like a REFERENCECONTROL can contain a REFERENCEORIGINAL and a REFERENCENAME as subrecords. ( this is not reflected in the formatted output ) b) there is a separate record reader for every 'Dir' stream record type, lots of records are similar, it's sure that better design here would allow more code sharing to be achieved and the amount of readers could be reduced. c) probably some interpretation of the information in the ProjectXXXX streams could be done ( infact we don't yet parse anything out of PROJECTlk ( its just a bunch of GUIDs with some extra blobs for licence info ) ( doesn't appear in excel files that I examined so I ignored it for now ) add licences
Diffstat (limited to 'decompress.py')
-rwxr-xr-xdecompress.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/decompress.py b/decompress.py
index ce7c854..50e7401 100755
--- a/decompress.py
+++ b/decompress.py
@@ -1,4 +1,30 @@
#!/usr/bin/env python2
+########################################################################
+#
+# Copyright (c) 2013 Noel Power
+#
+# Permission is hereby granted, free of charge, to any person
+# obtaining a copy of this software and associated documentation
+# files (the "Software"), to deal in the Software without
+# restriction, including without limitation the rights to use,
+# copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the
+# Software is furnished to do so, subject to the following
+# conditions:
+#
+# The above copyright notice and this permission notice shall be
+# included in all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+# HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+# OTHER DEALINGS IN THE SOFTWARE.
+#
+########################################################################
import sys, os.path, optparse
sys.path.append(sys.path[0]+"/src")